Boost logo

Boost Users :

Subject: [Boost-users] [Property Tree] Reading & Writing XML
From: Brent Arias (Brent.Arias_at_[hidden])
Date: 2010-06-09 14:57:01


Regarding the write_xml routine used with the boost Property Tree, it evidently does not utilize the underlying RapidXML tool? Said differently, is it true Property Tree relies on RapidXML for the reading step, but not the writing step? I ask because I may be swapping Property Tree's dependence on RapidXML, for a Unicode branch of pugiXML<http://code.google.com/p/pugixml/source/browse/#svn/branches/unicode> instead, so that I get free conversions to-and-from UTF-16/UTF-8. But if Property Tree does not use the underlying XML parser for the writing step, then I won't get that free conversion when writing back to disk.

As for the read_xml func, is it also true that "twice" the memory is needed, because RapidXML will load a document into a DOM, and then the Property Tree will allocate more memory to convert the DOM content into its own format?

Brent Arias
Software Architect
Lumension Security(tm)
Tel ~ (480) 444-1607
Fax ~ (480) 970-6323
brent.arias_at_[hidden]<mailto:brent.arias_at_[hidden]>



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