how do I add the "type" in the xml VS Web Services output
from
<phone>0000000000</phone>
to
<Phone Type="FAX" Number="0000000000" />
Printable View
how do I add the "type" in the xml VS Web Services output
from
<phone>0000000000</phone>
to
<Phone Type="FAX" Number="0000000000" />
I am not familiar with it, but from what I understand, it uses XSL for translation.
If so, after your <PHONE> tag, but before you enter data or close the tag, try this:
<xsl:attribute name="Type" value="FAX" />
I could be out in left field, but thought I would throw it out there if it is indeed based on XSL.
How would I attach it too the <phone element then? If I was writing out xml from code this wouldn't really be an issue but since I'm relying on Visual STudio to create the xml using <webMethod I'm not really finding how to modify the elements and attributes.
Ok, Im not sure. It was a shot in the dark, but sometimes a shot in the dark is better than a complete absence of response.
thanks for the try. I did find that .net will make custom elements automatically if you use class objects for all of the data. Now I just need to figure out how to add attributes to them.