Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
All-Star
27374 Points
4542 Posts
Apr 11, 2012 08:44 PM|LINK
Just a shot in the dark - but give this a try:
//Placed right after ending the Name Element xmlWriter.WriteStartElement("dateOfBirth"); xmlWriter.WriteAttributeString("format","MMDDCCYY"); xmlWriter.WriteString(yourBirthDateValue); xmlWriter.WriteEndElement();
Source
Rion William...
All-Star
27374 Points
4542 Posts
Re: How to add element and attribute on one line
Apr 11, 2012 08:44 PM|LINK
Just a shot in the dark - but give this a try:
//Placed right after ending the Name Element xmlWriter.WriteStartElement("dateOfBirth"); xmlWriter.WriteAttributeString("format","MMDDCCYY"); xmlWriter.WriteString(yourBirthDateValue); xmlWriter.WriteEndElement();Source