Jump to content

harry0812

Members
  • Posts

    7
  • Joined

  • Last visited

harry0812's Achievements

Newbie

Newbie (1/7)

1

Reputation

  1. I did find a way out . Can someone help me convert the below small script from vbscript to javascript. set xmlDoc=CreateObject("Microsoft.XMLDOM")xmlDoc.async="false"xmlDoc.load("nba.xml")for each x in xmlDoc.documentElement.childNodes; document.write("<b>" + x.nodename + "</b>"); document.write(": "); document.write(x.text); document.write("<br>");next
  2. I did try that. But its not able to parse a multilevel XML.eg :<a><b></b> <c> <d></d> <e></e> </c></a>
  3. Can someome please give me a dummy script that reads a data from a multilvel XML and parses it using Javascript and displays it in the html page. The catch is :- You are not allowed to use getElementByName and getElementById, etc... Only nodeType, childnode and other such attribuit is allowed.Please assist me here.
×
×
  • Create New...