How to create an XML document dynamically using MSXML?
-
How to created a well-formatted xml document like this using MSXML(I'm using MSXML6)? <?xml version="1.0" encoding="utf-8"?> <!--there are some comments--> <root> <node1>...</node1> </root> I found no way to add a CRLF after the ProcessInstruction and the first comment, but I do know how to add a CRLF in root node——Just createTextNode and add to the root element. So my program will always create a xml document like this <?xml version="1.0" encoding="utf-8"?><!--there are some comments--><root> <node1>...</node1> </root> Please help. Thanks :)
A Chinese VC++ programmer
-
How to created a well-formatted xml document like this using MSXML(I'm using MSXML6)? <?xml version="1.0" encoding="utf-8"?> <!--there are some comments--> <root> <node1>...</node1> </root> I found no way to add a CRLF after the ProcessInstruction and the first comment, but I do know how to add a CRLF in root node——Just createTextNode and add to the root element. So my program will always create a xml document like this <?xml version="1.0" encoding="utf-8"?><!--there are some comments--><root> <node1>...</node1> </root> Please help. Thanks :)
A Chinese VC++ programmer
Hello, have you looked to Microsoft's Create an XML Document Dynamically[^] article? Does it help? Hope so... Best regards, Mihai Moga