retreiving responseXML

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tinks
    New Member
    • Dec 2010
    • 5

    retreiving responseXML

    is it possible to get the tag name of an xml file in javascript?

    i am using ajax and responseXML. this is how my responseXML looks like.

    Code:
    <reply>
    <one>1</one>
    <two>2</two>
    </reply>
    i need to know the tags one and two.
    can i retrieve them?
    please help.
    Last edited by Dormilich; May 5 '11, 04:02 PM.
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    you can get the tag’s names through the DOM API via the tagName property.

    Comment

    Working...