dimanche 28 juin 2015

Is it possible to create xml tree with MSXML by indicating hierarchy path?

In boost property tree I can do the following:

    // Create an empty property tree object
   using boost::property_tree::ptree;
   ptree pt;

   // Put log filename in property tree
   pt.put("debug.filename", "test string");

this will allow to create xml tree with following structure:

<debug>
       <filename>test string</filename>
</debug>

Is it possible to achieve similar result with MSXML? That is creating tree structure and putting value to xml with something similar to hierarchy path: "debug.filename"? If yes, how?

Aucun commentaire:

Enregistrer un commentaire