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