Logo Search packages:      
Sourcecode: rarian version File versions

const TiXmlDocument * TiXmlNode::GetDocument (  )  const [inherited]

Return a pointer to the Document this node lives in. Returns null if not in a document.

Definition at line 592 of file tinyxml.cpp.

References TiXmlNode::parent, and TiXmlNode::ToDocument().

Referenced by TiXmlNode::LinkEndChild(), and TiXmlElement::SetAttribute().

      const TiXmlNode* node;

      for( node = this; node; node = node->parent )
            if ( node->ToDocument() )
                  return node->ToDocument();
      return 0;

Generated by  Doxygen 1.6.0   Back to index