XML creation XMLTextWriter vs MSXML

  • Thread starter Thread starter JD
  • Start date Start date
J

JD

Hi --

When I create an xml data stream using C# XMLTextWriter I can use
WriteStartElement/WriteElementString and WriteEndElement. Works great. Now
I'm trying to add elements to an existing piece of xml using C++ and MSXML.
And I'm have a difficult time creating elements and appending children to
accomplish the same as above 3 methods.

Tips appreciated.

Thanks,

Mike
 
XMLTextWriter should be used for creating new documents, not updating
existing ones.
Try using XMLDocument. You can then easily use CreateElement to create and
AppendChild to add the element to it's parent structure.

Good luck.
Wole
 
Back
Top