void XmlElement::SetAttribute( const std::string& name, int val ) { XmlAttribute* attrib = attributeSet.FindOrCreate( name ); if ( attrib ) { attrib->SetIntValue( val ); } }
/** * @brief * Sets an attribute of name to a given value */ void XmlElement::SetAttribute(const String &sName, int nValue) { XmlAttribute *pAttribute = m_cAttributeSet.FindOrCreate(sName); if (pAttribute) pAttribute->SetIntValue(nValue); }