Location: PHPKode > scripts > QXML > qxml/sample2.php
<?php
include_once("QSet.class.php");
include_once("QXml.class.php");

$xmlFile = "menu.xml";



/*
 * Final Node Set to XML
 * 
 */
$xml = new QXML;
$xml->setXmlFromFile($xmlFile);

$xml->setNode("hide@address.com", "test");
$xml->setNode("hide@address.com", "open test");

$xml->setNode("hide@address.com", "test");
$xml->setNode("hide@address.com", "tst");
$xml->setNode("hide@address.com", "It works!");
$xml->setNode("hide@address.com", "open test");

$xml->toXML($xml->getArray());

header("content-type:text/xml");

echo $xml->getXml();
?>
Return current item: QXML