Good morning
I need help.....How can erase a "child" or "node" in xml if i use simpleXML?
Thank you
How can erase a "child" or "node" in XML using simpleXML?
Moderator: General Moderators
Re: How can erase a "child" or "node" in XML using simpleXML?
just use unset() on the element
Re: How can erase a "child" or "node" in XML using simpleXML?
Thank for the help
but I can write the code this way?
<?php
$xml = simplexml_load_file('xmltest.xml');
$a = $xml->no [0];
{
unset($a);
}
but I can write the code this way?
<?php
$xml = simplexml_load_file('xmltest.xml');
$a = $xml->no [0];
{
unset($a);
}