rapidxml
xml_document<Ch>* document ( ) const [inline]

Gets document of which node is a child.

Returns:
Pointer to document that contains this node, or 0 if there is no parent document.

References rapidxml::node_document, xml_base< Ch >::parent(), and xml_node< Ch >::type().