I suppose from your question that use use the DOM
parser. The parser creates a xmlpp::Document, and that Document
with all its nodes exists as long as the DomParser object exists.
Both documents and nodes are non-copyable, but you can copy a
pointer to a node, and access the node later through that pointer.
Of course you must be sure not to dereference the pointer after
the parser object has been deleted. And I'm uncertain how safe
this strategy is, if you make changes to the parsed document
(adding or deleting nodes, for example). Saving the node's XPath and later retrieving the node with rootNode->find(xpath) should also work. I don't think the node's children would be included in the NodeSet that find() returns. You can easily test, I guess. XPath is very flexible. Depending on the exact contents of the XPath string, the result of the search can be quite different. Kjell Den 2015-09-21 kl. 21:42, skrev Park,
Joseph:
|