Logo Search packages:      
Sourcecode: rarian version File versions

const TiXmlElement * TiXmlNode::NextSiblingElement (  )  const [inherited]

Convenience function to get through elements. Calls NextSibling and ToElement. Will skip all non-Element nodes. Returns 0 if there is not another element.

Definition at line 535 of file tinyxml.cpp.

References TiXmlNode::NextSibling(), and TiXmlNode::ToElement().

Referenced by TiXmlHandle::ChildElement().

{
      const TiXmlNode* node;

      for ( node = NextSibling();
      node;
      node = node->NextSibling() )
      {
            if ( node->ToElement() )
                  return node->ToElement();
      }
      return 0;
}


Generated by  Doxygen 1.6.0   Back to index