Search the Community
Showing results for tags 'dom 2xml'.
The search index is currently processing. Current results may not be complete.
Hi,I have a xml file in the following format<employee><name>a1</name><age>22</age> <company> <name>company1</name> <address>address1</address> </company><tenure>3yrs</tenure></employee> I want to parse the xml file in javscript without using any getelementById or getelementByName. I was able to parse the xml using nodeValue, nodeType, however I am not able to parse inside the "company" tag (as company is a second level node). I am just able to extractname=a1age=22company=tenure=3yrs. Can someone ple