void TiXmlElement::SetAttribute( const char * name, long val ) { TiXmlAttribute* attrib = attributeSet.FindOrCreate( name ); if ( attrib ) { attrib->SetLongValue( val ); } }