Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • 3
    Note that you can use jquery to quickly access the values, like $(xmlDoc).find('street:eq(0) :eq(0)').html() instead of xmlDoc.getElementsByTagName("streetNumber")[0].childNodes[0].nodeValue; Commented May 2, 2016 at 20:42
  • 9
    Looking up and integrating OP's other questions' answers is what I call high-level SO game. I'm impressed, well done! Commented Aug 10, 2016 at 10:12
  • 2
    It works in >= IE6 :O Commented Aug 15, 2016 at 18:34
  • This does no work on Edge or IE if the tags have namespaces like <m:properties> Commented Feb 14, 2019 at 15:16
  • 1
    xmlDoc.getElementsByTagName("streetNumber")[0].innerHTML ...... OR ...... xmlDoc.getElementsByTagName("streetNumber")[0].textContent ??????? Commented Aug 13, 2020 at 20:34