在PHP中怎么调用xml文件?
colee 2003-03-19 01:22:14 在PHP中怎么调用xml文件?
或者将下面asp中代码改成用php写:
Set source = Server.CreateObject("Microsoft.XMLDOM")
source.validateOnParse=True
source.async = false
source.load(Server.MapPath("/xml/data.xml"))
Set rootNode = source.documentElement
Set tableNode = source.selectSingleNode("/root/table[@tableName='test']/fieldclass")
num=cint(tableNode.childNodes.length)
或者给出相关电子图书下载地址
都有分