| 729 | |
| 730 | |
| 731 | const XMLElement* XMLNode::FirstChildElement( const char* value ) const |
| 732 | { |
| 733 | for( XMLNode* node=_firstChild; node; node=node->_next ) { |
| 734 | XMLElement* element = node->ToElement(); |
| 735 | if ( element ) { |
| 736 | if ( !value || XMLUtil::StringEqual( element->Name(), value ) ) { |
| 737 | return element; |
| 738 | } |
| 739 | } |
| 740 | } |
| 741 | return 0; |
| 742 | } |
| 743 | |
| 744 | |
| 745 | const XMLElement* XMLNode::LastChildElement( const char* value ) const |