Friday, February 11, 2011

How to use php value in SimpleXMLElement ?

Hi ,

I know that too add a text value into the xml page I do the following

$person = $sxe->addChild("person");
$person->addChild('first_name');

If I want to use the value of $person how could I code it ?

  • You can get it as

    $personXml = $person->asXML();
    
    From alex

0 comments:

Post a Comment