src/xercesc/validators/schema/XUtil.cpp
// Finds and returns the next sibling element node with the give name.
Finds and returns the next sibling element node with the give name.
Finds and returns the next sibling element node with the give name .
DOMElement* XUtil::getNextSiblingElementNS(const DOMNode* const node
                                           , const XMLCh** const elemNames
                                           , const XMLCh* const uriStr
									       , unsigned int        length)
{
    DOMNode* sibling = node->getNextSibling();
    while (sibling != 0)
	{
        if (sibling->getNodeType() == DOMNode::ELEMENT_NODE)
		{
            for (unsigned int i = 0; i < length; i++)
			{
                if (XMLString::equals(sibling->getNamespaceURI(), uriStr) &&
                    XMLString::equals(sibling->getLocalName(), elemNames[i]))
                    return (DOMElement*)sibling;
			}
		}
        sibling = sibling->getNextSibling();
    }
    return 0;
}
DOMElement * XUtil :: getNextSiblingElementNS ( const DOMNode * const node , const XMLCh * * const elemNames , const XMLCh * const uriStr , unsigned int length ) { DOMNode * sibling = node -> getNextSibling ( ) ; while ( sibling != 0 ) { if ( sibling -> getNodeType ( ) == DOMNode :: ELEMENT_NODE ) { for ( unsigned int i = 0 ; i < length ; i ++ ) { if ( XMLString :: equals ( sibling -> getNamespaceURI ( ) , uriStr ) && XMLString :: equals ( sibling -> getLocalName ( ) , elemNames [ i ] ) ) return ( DOMElement * ) sibling ; } } sibling = sibling -> getNextSibling ( ) ; } return 0 ; }
Finds and returns the next sibling element node with the give name.
Finds and returns the next sibling element node with the give name .
// search for node // not found