Results 1 to 4 of 4

Thread: [RESOLVED] XMLHTTP.responseText and Javascript

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member rplcmint's Avatar
    Join Date
    Jan 2001
    Location
    Stockton, CA
    Posts
    333

    Resolved [RESOLVED] XMLHTTP.responseText and Javascript

    Well, I'm using the XMLHTTP API (which is pretty useful!).

    Now that I returned the "xml string" from another website, how do I parse through that data to get the information that I need? I don't need the whole string!


    So if my reponse: xmlhttp.responseText = <id value=1234><init>MPH</init></id><id value=1235><init>STP</init></id><id value=1236><init>RTY</init></id>

    ..how do move around the xml to retrieve id of 1236 which is RTY so I can name that tag on my page 'RTY'?

    Are there any methods that I can use from the XMLHTTP API that I can use to retrieve that certain node in XML that I need? Or do I have to use Javascript to parse the data that I need?



    The only examples I see don't parse through the xmlhttp.responseText, they use the whole damn XML string!


    I appreciate any help.


    P.S. I suppose I would have to use a well-formed XML to do this correctly.
    Last edited by rplcmint; Dec 6th, 2006 at 03:05 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width