Creation of XML

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I would like to insert a child xml element under its parent node in a
XmlDocument. I can't figure out how to do this. Is XmlWriter the only option
here.

brgds Jesper.
 
Jesper said:
Hi,

I would like to insert a child xml element under its parent node in a
XmlDocument. I can't figure out how to do this. Is XmlWriter the only option
here.

brgds Jesper.

On the XmlDocument there is a CreateNode method. Use this to create an
XmlNode that you can insert somewhere in the tree. You can use
AppendChild, InsertBefore or InsertAfter on some XmlNode in this
document to add your newly created node.
 
Back
Top