/// Generic attribute setter with unicode value Attribute Handle_t::setAttr(const XmlChar* nam, const XmlChar* val) const { #ifdef DD4HEP_USE_TINYXML TiXmlElement* e = Xml(m_node).e; e->SetAttribute(nam,val); return Attribute(e->AttributeNode(nam)); #else xercesc::DOMElement* e = _E(m_node); xercesc::DOMAttr* a = e->getAttributeNode(nam); if (!a) { a = e->getOwnerDocument()->createAttribute(nam); e->setAttributeNode(a); } a->setValue(val); return Attribute(a); #endif }