| 490 | TiXmlElement::~TiXmlElement() { ClearThis(); } |
| 491 | |
| 492 | void TiXmlElement::ClearThis() |
| 493 | { |
| 494 | Clear(); |
| 495 | while (attributeSet.First()) |
| 496 | { |
| 497 | TiXmlAttribute* node = attributeSet.First(); |
| 498 | attributeSet.Remove(node); |
| 499 | xr_delete(node); |
| 500 | } |
| 501 | } |
| 502 | |
| 503 | const char* TiXmlElement::Attribute(const char* name) const |
| 504 | { |