Skip to content Skip to sidebar Skip to footer

Get Xml Dom Child Element In Javascript

I have an XML document like this:

Solution 1:

You may use querySelectorAll():

SectionXML.querySelectorAll("section>description")[0]
// use > to get direct element only

Post a Comment for "Get Xml Dom Child Element In Javascript"