So a quick question i started using boost::property_tree, anyways. The documentation is very vague and overall unhelpful, for the most part. Looking at the source/examples didnt help that much ether.
What im wondering is the following:
<VGHL>
<StringTable>
<Language>EN</Language>
<DataPath>..\\Data\\Resources\\Strings\\stringtable.bst</DataPath>
</StringTable>
</VGHL>
How can i iterate over all the elements at the current level? If i do this:
read_xml(fin, bifPropTree); VGHL::String tablePath; BOOST_FOREACH(boost::property_tree::wiptree::value_type &v, bifPropTree.get_child(L"VGHL.StringTable")) { m_StringTable->ParseEntry(v.second, tablePath); }
In parseEntry i try this:
VGHL::String langName = stringTree.get<VGHL::String>(L"StringTable.Language");
Results in an exception(not doesnt exist), also trying this:
VGHL::String langName = stringTree.get<VGHL::String>(L"Language");
Same problem.
From my understanding when i call ParseEntry i am passing a reference to the tree at that node.
Otherwise is there any way to deal with this, when i have multiple entries of StringTable using property tree?