Boost logo

Boost Users :

Subject: Re: [Boost-users] [property_tree] number of sections in an inifile
From: naive231 (naive231_at_[hidden])
Date: 2012-06-13 05:39:49


Can I know one element under a parent node existence?
If my xml file's content like this:

<?xml version="1.0" encoding="utf-8"?>
<loader value="../../../asset/art/demo25Dv1.swf"/>
<video width="1280" height="720"/>

<touch>
    <show_points_info/>
</touch>

When I use ptree.count("touch"), it returns 1.
But I use ptree.count("touch.show_points_info"), it returns 0 instead.
What's wrong with that? Or should I use another method to get existence node
of any depth?

--
View this message in context: http://boost.2283326.n4.nabble.com/property-tree-number-of-sections-in-an-inifile-tp4495717p4631211.html
Sent from the Boost - Users mailing list archive at Nabble.com.

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