void XmlElement::SetAttribute( const std::string& _name, const std::string& _value ) { XmlAttribute* attrib = attributeSet.FindOrCreate( _name ); if ( attrib ) { attrib->SetValue( _value ); } }
void XmlElement::SetAttribute( const char * cname, const char * cvalue ) { XmlAttribute* attrib = attributeSet.FindOrCreate( cname ); if ( attrib ) { attrib->SetValue( cvalue ); } }
/** * @brief * Sets an attribute of name to a given value */ void XmlElement::SetAttribute(const String &sName, const String &sValue) { XmlAttribute *pAttribute = m_cAttributeSet.FindOrCreate(sName); if (pAttribute) pAttribute->SetValue(sValue); }