php使用domdocument讀取xml文件
使用domdocument讀取xml文件需要用到以下幾個方法和屬性: 方法: 1:讀取xml文件:load() 2:獲取標簽的對象數組:getElementByTagName() 3:對象數組的索引:item() 屬性: 1:獲取屬性或節點的文本 ...
使用domdocument讀取xml文件需要用到以下幾個方法和屬性: 方法: 1:讀取xml文件:load() 2:獲取標簽的對象數組:getElementByTagName() 3:對象數組的索引:item() 屬性: 1:獲取屬性或節點的文本 ...