From: tikcireviva <tik...@ya...> - 2005-08-10 00:25:49
|
Hi Everyone, After going through a couple examples, I found that the XPath feature is pretty handy. And I wonder why there is XPath example for DOM instead of SAX? If libxml++ do support this feature, could you mind show me any examples or a way to tackle this? While playing with the XPath example, I have enountered some difficulties in order to extract the value from "my-xpath". For instance, let's say if I have the following xml-like input. <title>A section</title> And I have this XPath '/title', how can I get the 'A section' value from a node? (A node/nodeset should be in this type 'xmlpp::NodeSet' according to the example) I know this is a really dumb question, and I am really hoping that you guys could give me a helping hand. Thank you very much. Best wishes, -tikcireviva. |