Barry, Gregory P. wrote:
Is there an interface/method available to access the DOM Document/tree for retrieval of data based on tag or tree hierarchy (e.g. is there a method were you can pass in the subtree tag name with an element name to retrieve the data something on the order of getValue(SubTreeName.TagName). Or does this need written in the application that is using the DOM parser using the traversal methods?
Please take a look at DOMElement::getElementsByTagName() and DOMElement::getElementsByTagNameNS(). That, along with DOMNode::getTextContent() should do what you want.

I also sent to c-dev in the event this is a dev question.
In the future, please don't cross-post. The user list is the appropriate forum for this sort of question, and you'll get redirected otherwise.

Dave

Reply via email to