Game/Xerces/src/xercesc/validators/schema/XUtil.cpp
// Finds and returns the last child element node.
Finds and returns the last child element node.
Finds and returns the last child element node .
DOMElement* XUtil::getNextSiblingElement(const DOMNode* const node)
{
    DOMNode* sibling = node->getNextSibling();
    while (sibling != 0)
	{
        if (sibling->getNodeType() == DOMNode::ELEMENT_NODE)
            return (DOMElement*)sibling;
        sibling = sibling->getNextSibling();
    }
    return 0;
}
DOMElement * XUtil :: getNextSiblingElement ( const DOMNode * const node ) { DOMNode * sibling = node -> getNextSibling ( ) ; while ( sibling != 0 ) { if ( sibling -> getNodeType ( ) == DOMNode :: ELEMENT_NODE ) return ( DOMElement * ) sibling ; sibling = sibling -> getNextSibling ( ) ; } return 0 ; }
Finds and returns the last child element node.
Finds and returns the last child element node .
// search for node // not found