Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost PropertyTree: read_json() followed by write_xml produces invalid XML
From: Lars Viklund (zao_at_[hidden])
Date: 2014-04-27 12:34:41


On Sun, Apr 27, 2014 at 03:43:43PM +0200, Klaim - Joël Lamotte wrote:
> Boost.PropertyTree is not a JSON library nor a XML library.
> It's a property tree library that happen to have functions to create
> JSON-compatible or XML compatible output
> or read from one.

The example JSON file he lists is verbatim from the documentation, and
the problem seems to be that the chain of operations
  read PT conformant JSON
  write PT XML
  read PT XML into the same ptree object
fails.

Surely PT's XML writer should emit XML that PT's XML reader groks?

-- 
Lars Viklund | zao_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