
Preston A. Elder wrote:
There is an existing problem with the version of rapidxml included with boost::property_tree (from the trunk, I have this as an SVN external into my own repository for my own project in preparation for it getting into boost proper).
If I have something like: <field> </field>
The intention is obviously to have the value of field be a space. Since spaces are trimmed and condensed, something like: <field> </field> will not work.
It seems that condensing of whitespace is happening AFTER the expansion of the NN; expansion (similarly with NNN;). This is obviously an error, because otherwise there is no way for me to have a space as the first or last character (or have multiple spaces in a row).
I think this is the right behaviour. BTW, if you want to get <field> with one space inside, you should write: <field xml:space="preserve"> </field> or <field xml:space="preserve"> </field>