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