pugixml - how to get the document from a contained node

456 views Asked by At

I was wondering it there is a way to obtain the xml_document that contains a given xml_node. Looking at the API doc xml_node provides the method root() but the return type is xml_node instead of xml_document. Is there a way to work around this in order to get the document?

Thanks in advance.

0

There are 0 answers