| 1022 | |
| 1023 | |
| 1024 | const XMLElement* XMLNode::FirstChildElement( const char* name ) const |
| 1025 | { |
| 1026 | for( const XMLNode* node = _firstChild; node; node = node->_next ) { |
| 1027 | const XMLElement* element = node->ToElementWithName( name ); |
| 1028 | if ( element ) { |
| 1029 | return element; |
| 1030 | } |
| 1031 | } |
| 1032 | return 0; |
| 1033 | } |
| 1034 | |
| 1035 | |
| 1036 | const XMLElement* XMLNode::LastChildElement( const char* name ) const |