Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r55883 - in branches/sredl_2009_05_proptree_update: boost/property_tree/detail libs/property_tree/test
From: sebastian.redl_at_[hidden]
Date: 2009-08-30 16:35:16


Author: cornedbee
Date: 2009-08-30 16:35:15 EDT (Sun, 30 Aug 2009)
New Revision: 55883
URL: http://svn.boost.org/trac/boost/changeset/55883

Log:
Read CDATA nodes. Note that they don't round-trip.
Text files modified:
   branches/sredl_2009_05_proptree_update/boost/property_tree/detail/xml_parser_read_rapidxml.hpp | 1 +
   branches/sredl_2009_05_proptree_update/libs/property_tree/test/xml_parser_test_data.hpp | 2 +-
   2 files changed, 2 insertions(+), 1 deletions(-)

Modified: branches/sredl_2009_05_proptree_update/boost/property_tree/detail/xml_parser_read_rapidxml.hpp
==============================================================================
--- branches/sredl_2009_05_proptree_update/boost/property_tree/detail/xml_parser_read_rapidxml.hpp (original)
+++ branches/sredl_2009_05_proptree_update/boost/property_tree/detail/xml_parser_read_rapidxml.hpp 2009-08-30 16:35:15 EDT (Sun, 30 Aug 2009)
@@ -50,6 +50,7 @@
 
             // Data nodes
             case rapidxml::node_data:
+ case rapidxml::node_cdata:
             {
                 if (flags & no_concat_text)
                     pt.push_back(std::make_pair(xmltext<Ch>(), Ptree(node->value())));

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-08-30 16:35:15 EDT (Sun, 30 Aug 2009)
@@ -35,7 +35,7 @@
     "\n"
     "<!-- Last edited: 27 May 1999 by bent -->\n"
     "<header><?Pub Dtl?>\n"
- " <title>XML Linking Language (XLink)</title>\n"
+ " <title><![CDATA[XML Linking Language (XLink)]]></title>\n"
     " <version>Version 1.0</version>\n"
     " <w3c-designation>WD-xlink-19990527</w3c-designation>\n"
     " <w3c-doctype>World Wide Web Consortium Working Draft</w3c-doctype>\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