Tag archive for "simplexml"

Merging and splitting XML files with simpleXML

Here's a way to merge parts of two XML files with PHP's simpleXML. This also preserves the attributes, which was where the information was stored in my case. This script will not work out of the box for you, so edit it. Use var_dump(), print_r() and friends. <?php $file1 = ... more