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