Re: [libxml++] recursive get_children?
- From: Stefan Seefeld <seefeld sympatico ca>
- To: libxmlplusplus-general lists sourceforge net
- Subject: Re: [libxml++] recursive get_children?
- Date: Thu, 06 Mar 2003 09:03:59 -0500
Eric Bourque wrote:
Are there plans to have a recursive Node::get_children or something
similar? For example, the perl libxml wrapper has
Element::getChildrenByTagName, and Element::getElementsByTagName, the
latter of which is recursive. This is extremely handy.
Indeed. The standard way to do that is using XPath expressions
(http://www.w3.org/TR/xpath), which is supported in libxml++ by means of
the Node::find() method. Have a look into the examples, it demonstrates
how to use it.
Regards,
Stefan
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]