Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Writing XML Attributes

Status
Not open for further replies.

Shazza

Technical User
Aug 21, 2000
38
0
0
NZ
I am new to writing XML, and I am trying to write an XML document using XmlTextWriter.

I am trying to achieve the following:
<app summary="addfsdf" sample="asdasdf">value of element</app>

When I use the WriteAttributeString method I get the attributes added correctly, but I am unable to get the value of the element at the same time.

Does anybody know how to achieve this?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top