XmlAttribute *XmlElement::XmlAttributeSet::FindOrCreate(const String &sName) { XmlAttribute *pAttribute = Find(sName); if (!pAttribute) { pAttribute = new XmlAttribute(); Add(*pAttribute); pAttribute->SetName(sName); } return pAttribute; }
XmlAttribute* XmlAttributeSet::FindOrCreate( const char* _name ) { XmlAttribute* attrib = Find( _name ); if ( !attrib ) { attrib = new XmlAttribute(); Add( attrib ); attrib->SetName( _name ); } return attrib; }