xerces-c-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fatboyjim <fatboyjim...@hotmail.com>
Subject setDOMAttribute using integer value
Date Thu, 24 Aug 2006 11:06:41 GMT

Using the DOM API, I can successfully add attributes to a node using the

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

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.

View raw message