-
XMLHttpRequest Object responseXML Property child nodes
(Hope this is the right forum for this.)
This is the data structure returned by the web service:
/**
* <CValueInterface>: <Calculator input/output for C-Value>
*/
public ref class CValueInterface
{
public:
int DefaultEventType;
{...}
bool IsRateChangeRow;
String^ ErrorMsg;
array<BufferInputClass^>^ BufferInputs;
array<TransactionClass^>^ Transactions;
};
This works just find to display the "dAdvance" field (xml node) of the TransactionClass:
alert(objXMLHTTP2.responseXML.getElementsByTagName("TransactionClass")[X].getElementsByTagName("dAdvance")[0].firstChild.data);
However, what I really want for debugging is to show in one call to alert, one entire TransactionClass node.
Can this be done, and what's the syntax?
TIA.
-
This is the syntax:
alert(objXMLHTTP2.responseXML.getElementsByTagName("TransactionClass")[i].xml);
-
BTW, I only tried this in IE v8. The "xml" property is an IE "enhancement", I believe.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
|
Bookmarks