Beispiel #1
0
void XmlElement::SetAttribute( const std::string& _name, const std::string& _value )
{
	XmlAttribute* attrib = attributeSet.FindOrCreate( _name );
	if ( attrib ) {
		attrib->SetValue( _value );
	}
}
Beispiel #2
0
void XmlElement::SetAttribute( const char * cname, const char * cvalue )
{
	XmlAttribute* attrib = attributeSet.FindOrCreate( cname );
	if ( attrib ) {
		attrib->SetValue( cvalue );
	}
}
Beispiel #3
0
/**
*  @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);
}