If it doesn't have the container closing tags then it won't be valid XML (which is certainly possible for a config file, though kind of rude of them to do it that way). No decent XML generator will let you do that. A straightforward way to remove them is to do something like:
$mycontainerless=$tree->as_XML(); $mycontainerless=~%</container>%%gi;
before you write it to the file.
In reply to Re^5: how to update an xml file by read data from csv file
by bitingduck
in thread how to update an xml file by read data from csv file
by Vijay81
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |