Closed GoogleCodeExporter closed 9 years ago
Since using attribute nodes as a context is relatively rare, to do this you
need to use xpath_query API (which is what select_* do behind the scenes
anyway).
I.e.:
pugi::xpath_node node(attr, attrnode);
pugi::xpath_query(". > 18").evaluate_boolean(node);
The reason why xml_attribute does not keep a parent reference is because the
need for it is relatively rare, but the memory overhead is significant; see #127
Original comment by arseny.k...@gmail.com
on 17 Dec 2013 at 4:53
#127 refers to http://code.google.com/p/pugixml/issues/detail?id=127
Original comment by arseny.k...@gmail.com
on 17 Dec 2013 at 4:53
Closing as "Done" since the request is for a feature that already exists.
Original comment by arseny.k...@gmail.com
on 20 Dec 2013 at 5:33
Original issue reported on code.google.com by
phoenixs...@gmail.com
on 17 Dec 2013 at 3:10