You need to include the format argument 2 in $new->toFile("output_new.xml",2) and print $new->toString(2);
In reply to Re^3: 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: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |