Results 1 to 3 of 3
  1.    #1  
    I have been trying for the last 4 hours to parse some XML data with no luck whatsoever.

    Could someone with more insight on the SDK help me with the bare essentials to XML parsing?

    I am much more experienced with PHP/MySQL and really wish I would of paid attention more in my Java classes.
  2. #2  
    Use DOM to traverse XML tree - e.g. getElementsByTagName("item") returns a NodeList of <item>.
    There're a plenty of tutorials on DOM XML parsing!
  3. s219's Avatar
    498 Posts
    Global Posts
    1,008 Global Posts
    It's easy with javascript, in fact, it's usually the easiest way. Here's how I parse XML elements from an XMLHttpRequest called req1:

    var pressure = req1.responseXML.getElementsByTagName('pressure')[0].firstChild.nodeValue;

    and so on...

Posting Permissions