Hi,
I am using xerces-c 1.7 API. When I execute the following lines of code, the order in
which I get back the attributes is sorted alphabetically. Is there a way to get the
list of attributes the way they appeared in my original XML Node?
DOM_NamedNodeMap attributes = toWrite.getAttributes();
int attrCount = attributes.getLength();
for (i = 0; i < attrCount; i++)
{
DOM_Node attribute = attributes.item(i);
DOMString attrNodeName = attribute.getNodeName();
char * attrValue = attrNodeName.transcode();
// print out the attribute value...
// delete the transcoded string...
}
If my node was as follows:
<MyNode type="myType" name="myName">
I want the attributes.item(0) to be type and attributes.item(1) to be name but it
gives me name first and type next.
Thank you in advance for any replies.-------------------------------------------------------------------------------------
The information contained in this message is proprietary of Amdocs,
protected from disclosure, and may be privileged.
The information is intended to be conveyed only to the designated recipient(s)
of the message. If the reader of this message is not the intended recipient,
you are hereby notified that any dissemination, use, distribution or copying of
this communication is strictly prohibited and may be unlawful.
If you have received this communication in error, please notify us immediately
by replying to the message and deleting it from your computer.
Thank you.
-------------------------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]