¡@

Home 

php Programming Glossary: doc1

Merge XML files in PHP

http://stackoverflow.com/questions/10163675/merge-xml-files-in-php

on Torious answer just adapted it to my needs check edited doc1 new DOMDocument doc1 load '1.xml' doc2 new DOMDocument doc2.. adapted it to my needs check edited doc1 new DOMDocument doc1 load '1.xml' doc2 new DOMDocument doc2 load '2.xml' get 'res'.. doc2 load '2.xml' get 'res' element of document 1 res1 doc1 getElementsByTagName 'items' item 0 edited res items iterate..