| 387 | } |
| 388 | |
| 389 | void TiXmlElement::RemoveAttribute(const char* name) |
| 390 | { |
| 391 | #ifdef TIXML_USE_STL |
| 392 | TIXML_STRING str(name); |
| 393 | TiXmlAttribute* node = attributeSet.Find(str); |
| 394 | #else |
| 395 | TiXmlAttribute* node = attributeSet.Find(name); |
| 396 | #endif |
| 397 | if (node) |
| 398 | { |
| 399 | attributeSet.Remove(node); |
| 400 | xr_delete(node); |
| 401 | } |
| 402 | } |
| 403 | |
| 404 | const TiXmlElement* TiXmlNode::FirstChildElement() const |
| 405 | { |