Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How to create an XML document dynamically using MSXML?

How to create an XML document dynamically using MSXML?

Scheduled Pinned Locked Moved C / C++ / MFC
c++xmlhelptutorialquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Z Offline
    Z Offline
    zengkun100
    wrote on last edited by
    #1

    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

    stefanmihaimogaS 1 Reply Last reply
    0
    • Z zengkun100

      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

      stefanmihaimogaS Offline
      stefanmihaimogaS Offline
      stefanmihaimoga
      wrote on last edited by
      #2

      Hello, have you looked to Microsoft's Create an XML Document Dynamically[^] article? Does it help? Hope so... Best regards, Mihai Moga

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups