F
Fabien R
Hello,
I'm walking through my XML tree and I want to add attributes to all
its nodes.
I thought to use the following code:
DOMElement* p_tmpNode = (DOMElement*)p_node->getChildNodes()->item(i);
p_tmpNode->setAttribute(XMLString::transcode(attrName),XMLString::transcode(attrVal));
Is there a more elegant way to do the same avoiding the downcast ?
TIA,
Fabien
I'm walking through my XML tree and I want to add attributes to all
its nodes.
I thought to use the following code:
DOMElement* p_tmpNode = (DOMElement*)p_node->getChildNodes()->item(i);
p_tmpNode->setAttribute(XMLString::transcode(attrName),XMLString::transcode(attrVal));
Is there a more elegant way to do the same avoiding the downcast ?
TIA,
Fabien