如何将xml值分配给javascript变量。
data.xml中:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="webdata.xslt"?>
<information>
<personal_info>
<accountname>John Doe</accountname>
<accountnumber>987654321</accountnumber>
<mobileuser>Nathan 'Nath' Smith</mobileuser>
<mobileno>8755559876</mobileno>
</personal_info>
</information>
mobileno值想在javascript中使用
答案 0 :(得分:0)
这可能会对您有所帮助:
http://www.w3schools.com/dom/dom_nodes_get.asp
加载功能:
http://www.w3schools.com/dom/dom_loadxmldoc.asp