<?
include_once("class.XmlObject.php");
include_once("class.Test.php");
$test = new Test("Augusto Cesar Castoldi");
$test->email = "castoldi@inf.ufsc.br";
$test->date = "2003-11-28";
$xmlObject = new XmlObject();
$xmlObject->saveObject($test, "/home/user/XmlObjectTest.xml");
$test = new Test();
$test = $xmlObject->getObject($test, "/home/user/XmlObjectTest.xml");
echo "name=$test->name<br>
email=$test->email<br>
date=$test->date";
?>
<br><br>
<a href="XmlObjectTest.xml" target="_blank">open gererated xml</a>
|