| 1860 | } |
| 1861 | |
| 1862 | void XMLElement::DeleteAttribute(const char* name) |
| 1863 | { |
| 1864 | XMLAttribute* prev = 0; |
| 1865 | for (XMLAttribute* a = _rootAttribute; a; a = a->_next) |
| 1866 | { |
| 1867 | if (XMLUtil::StringEqual(name, a->Name())) |
| 1868 | { |
| 1869 | if (prev) |
| 1870 | { |
| 1871 | prev->_next = a->_next; |
| 1872 | } |
| 1873 | else |
| 1874 | { |
| 1875 | _rootAttribute = a->_next; |
| 1876 | } |
| 1877 | DeleteAttribute(a); |
| 1878 | break; |
| 1879 | } |
| 1880 | prev = a; |
| 1881 | } |
| 1882 | } |
| 1883 | |
| 1884 | char* XMLElement::ParseAttributes(char* p, int* curLineNumPtr) |
| 1885 | { |
nothing calls this directly
no test coverage detected