使用DOM方法解析xml文件

在解析xml文件中一共有四種方法,如下使用DOM方法對如下簡易xml文件進行解析 <?xml version="1.0" encoding="UTF-8"?> <bookstore> <book id="1"> <name>活着</name> <author>餘華</author> <price>89</price> </book> <book id="2"> <name>雪落香杉樹</name>
相關文章
相關標籤/搜索