先贴上本实例需要用到的xml
z 16 50 160 李四 17 51 165 王二 18 55 170 javior 20 68 179
实例-:解析xml字符。
实例二:解析xml文件。
将xml文件或字符串转化为js对象后,我们就可以使用xml dom来读取xml中的数据了。
代码如下:
