|
Boost Users : |
Subject: Re: [Boost-users] boost::property_tree::ptree with write_xml
From: Michael Powell (mwpowellhtx_at_[hidden])
Date: 2015-03-18 07:21:21
On Wed, Mar 18, 2015 at 6:18 AM, Uthpal Urubail
<uthpal.urubail_at_[hidden]> wrote:
> All,
>
> 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.
I don't know about the property tree writer, but that's an invalid Xml comment.
http://www.w3.org/TR/REC-xml/#sec-comments
> Example:
>
> /*comment*/<debug>
>
> /*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>
>
> /*comment*/</debug>
>
> 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);
>
>
>
>
>
> Regards,
>
> UJ
>
>
>
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net