Boost logo

Boost Users :

Subject: [Boost-users] boost::property_tree::ptree with write_xml
From: Uthpal Urubail (uthpal.urubail_at_[hidden])
Date: 2015-03-18 07:18:01


I am looking got the help with xml writer using property tree.

My requirement is to write a user defined comment (in below example /*comment*/) in every line of XML file.



/*comment*/ <filename>debug.log</filename>

/*comment*/ <modules>

/*comment*/ <module>Finance</module>

/*comment*/ <module>Admin</module>

/*comment*/ <module>HR</module>

/*comment*/ </modules>

/*comment*/ <level>2</level>


Can someone help me in solving the above? Any help on this would be highly appreciated.

 boost::property_tree::xml_writer_settings<std::string> w(' ', 4);

write_xml(os, pt,w);


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at