| 1786 | |
| 1787 | |
| 1788 | void XMLElement::DeleteAttribute( const char* name ) |
| 1789 | { |
| 1790 | XMLAttribute* prev = 0; |
| 1791 | for( XMLAttribute* a=_rootAttribute; a; a=a->_next ) { |
| 1792 | if ( XMLUtil::StringEqual( name, a->Name() ) ) { |
| 1793 | if ( prev ) { |
| 1794 | prev->_next = a->_next; |
| 1795 | } |
| 1796 | else { |
| 1797 | _rootAttribute = a->_next; |
| 1798 | } |
| 1799 | DeleteAttribute( a ); |
| 1800 | break; |
| 1801 | } |
| 1802 | prev = a; |
| 1803 | } |
| 1804 | } |
| 1805 | |
| 1806 | |
| 1807 | char* XMLElement::ParseAttributes( char* p, int* curLineNumPtr ) |
nothing calls this directly
no test coverage detected