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"/>


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:
Sent from the Boost - Users mailing list archive at

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at