|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r55953 - in branches/sredl_2009_05_proptree_update/libs/property_tree: doc test
From: sebastian.redl_at_[hidden]
Date: 2009-09-01 06:35:25
Author: cornedbee
Date: 2009-09-01 06:35:25 EDT (Tue, 01 Sep 2009)
New Revision: 55953
URL: http://svn.boost.org/trac/boost/changeset/55953
Log:
Document how encoded XML works (or not). Also, having an SVN tag in test data is a bad idea.
Text files modified:
branches/sredl_2009_05_proptree_update/libs/property_tree/doc/xml_parser.qbk | 8 ++++++++
branches/sredl_2009_05_proptree_update/libs/property_tree/test/xml_parser_test_data.hpp | 1 -
2 files changed, 8 insertions(+), 1 deletions(-)
Modified: branches/sredl_2009_05_proptree_update/libs/property_tree/doc/xml_parser.qbk
==============================================================================
--- branches/sredl_2009_05_proptree_update/libs/property_tree/doc/xml_parser.qbk (original)
+++ branches/sredl_2009_05_proptree_update/libs/property_tree/doc/xml_parser.qbk 2009-09-01 06:35:25 EDT (Tue, 01 Sep 2009)
@@ -13,6 +13,14 @@
compatibility with older versions of PropertyTree and will be made configurable
in the future.
+Please note that RapidXML does not understand the encoding specification. If
+you pass it a character buffer, it assumes the data is already correctly
+encoded; if you pass it a filename, it will read the file using the character
+conversion of the locale you give it (or the global locale if you give it none).
+This means that, in order to parse a UTF-8-encoded XML file into a wptree, you
+have to supply an alternate locale, either directly or by replacing the global
+one.
+
XML / property tree conversion schema (__read_xml__ and __write_xml__):
* Each XML element corresponds to a property tree node. The child elements
Modified: branches/sredl_2009_05_proptree_update/libs/property_tree/test/xml_parser_test_data.hpp
==============================================================================
--- branches/sredl_2009_05_proptree_update/libs/property_tree/test/xml_parser_test_data.hpp (original)
+++ branches/sredl_2009_05_proptree_update/libs/property_tree/test/xml_parser_test_data.hpp 2009-09-01 06:35:25 EDT (Tue, 01 Sep 2009)
@@ -571,7 +571,6 @@
" \n"
" Based on RSS DTD originally created by\n"
" Lars Marius Garshol - larsga_at_ifi.uio.no.\n"
- " $Id$\n"
" \n"
"-->\n"
"<!ELEMENT rss (channel)>\n"
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk