I only got the following in my output file...Did you include the line $new->addChild($features); ?
<?xml version="1.0" encoding="utf-8"?>
a nice formatted outputDid you include the format argument 2 in $new->toFile($filename,2) ? You can also print $new->toString(2) when debugging.
In reply to Re^5: copy XML elements from one file to another
by tangent
in thread copy XML elements from one file to another
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |