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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top