Using the DOM API, I can successfully add attributes to a node using the
following:
XMLCh *name = XMLString::transcode("Age");
XMLCh *value = XMLString::transcode("Twelve");
element->setAttribute(name, value);
However, what if I have my value held in an integer?
XMLCh *name = XMLString::transcode("Age");
int age = 12;
...
...
How do I go from here? I don't want to use itoa() to convert integer to
ascii
Thanks
Jim
--
View this message in context:
http://www.nabble.com/setDOMAttribute-using-integer-value-tf2158015.html#a5961812
Sent from the Xerces - C - Users forum at Nabble.com.