www.webdeveloper.com
Results 1 to 3 of 3

Thread: XMLHttpRequest Object responseXML Property child nodes

  1. #1
    Join Date
    Feb 2006
    Posts
    14

    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.

  2. #2
    Join Date
    Feb 2006
    Posts
    14
    This is the syntax:

    alert(objXMLHTTP2.responseXML.getElementsByTagName("TransactionClass")[i].xml);

  3. #3
    Join Date
    Feb 2006
    Posts
    14
    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
  •  
HTML5 Development Center



Recent Articles