Re: [Boost-bugs] [Boost C++ Libraries] #5210: JSON writer does not allow attributes and children in the same node

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #5210: JSON writer does not allow attributes and children in the same node
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-05-18 18:05:03


#5210: JSON writer does not allow attributes and children in the same node
------------------------------------------------------------+---------------
  Reporter: Christian Ceelen <christian.ceelen@…> | Owner: cornedbee
      Type: Bugs | Status: closed
 Milestone: To Be Determined | Component: property_tree
   Version: Boost 1.46.0 | Severity: Problem
Resolution: invalid | Keywords:
------------------------------------------------------------+---------------
Changes (by cornedbee):

  * status: reopened => closed
  * resolution: => invalid

Comment:

 Your XML contains whitespace between the various elements, and it is
 preserved. Therefore, the nodes contain both data and children, which, as
 mentioned, is not allowed for the JSON writer.

 Pass trim_whitespace to read_xml, and it should collapse and remove the
 whitespace.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5210#comment:3>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:06 UTC