Questions tagged [boost-propertytree]

The Boost PropertyTree library provides a data structure that stores an arbitrarily deeply nested tree of values, indexed at each level by some key. It serializes and emulates XML, JSON and INI file structures.

The Boost PropertyTree library provides a data structure that stores an arbitrarily deeply nested tree of values, indexed at each level by some key. It serializes and emulates XML, JSON and INI file structures.

Note: Boost.PropertyTree is not a generic XML parser. It is not intended to be used as a fast-and-dirty way to load arbitrary XML files into memory. It's XML serialization capabilities are for serialization. It is intended to read the XML that it has written.

Please stop using Boost.PropertyTree as a generic XML parser.

354 questions
0
votes
0 answers

Including boost::property_tree throws compiler errors

I try to use the boost property tree in a SystemC project. Project uses : gcc 4.6.3 systemc 2.2 boost 1.46 Header: #include #include #include #include #include #include
Steve
  • 1,072
  • 11
  • 28
0
votes
1 answer

xml parsing in boost with property tree

I have following xml file. It is showing firmware version info for 2 drives, bay 1 and bay 2. At this point, everything looks similar for both drives, except bay 1 and bay 2. But I expect these to have different firmware version. I need to read and…
usustarr
  • 418
  • 1
  • 5
  • 21
0
votes
1 answer

boost::property_:tree - parsing and processing data

I have just discovered boost::property_tree, which seems the perfect answer to my problem. I wrote a small test program to extract specific data from an xml file. I have used the example provided in the documentation as a guide. The xml file:…
Thalia
  • 13,637
  • 22
  • 96
  • 190
0
votes
1 answer

C++ Boost property tree - Update tree by file

I'm using Boost Property Tree to load ini configuration files. Using this library, I'm able to load each configuration file into one boost::property_tree::ptree object. Now I want to load multiple configuration files in one ptree object. How can I…
Kia.celever
  • 635
  • 2
  • 9
  • 16
-1
votes
1 answer

How to read JSON file using boost libraries, Boost property tree in C++

i am new to Boost libraries and quite new to programming also. I am trying to read JSON file which is created by hand using boost libraries and boost property tree in C++. I need to use boost property tree to read elements from JSON file this is my…
-1
votes
1 answer
-1
votes
1 answer

how to return last boost ptree item

I want to make a function which finds the last item in a boost::property_tree::ptree and returns it as ptree I have following code which finds last item, however I do not know how to pass its ptree as a return value - it should be possible, however…
serup
  • 3,676
  • 2
  • 30
  • 34
-1
votes
2 answers

read_xml() throw exception due to lacking of double quotes

I use boost::property_tree object to parse xml like this: When I call read_xml() to parse this content, it works well. But if I remove those double quotes around the…
naive231
  • 1,360
  • 1
  • 11
  • 28
-2
votes
2 answers

New line seen in command prompt but the same string is seen with \n in file output

I have this code which runs fine #include #include #include int main() { std::set a; a.insert("foo"); a.insert("bar"); a.insert("zoo"); a.insert("should"); a.insert("work"); …
silent_programmer
  • 768
  • 2
  • 8
  • 18
1 2 3
23
24