I tried example 1: http://www.active-link.com/software/iorca/example.php
// include a class-loading function
require_once("classes/include.php");
// import XML and XMLDocument classes
import("org.active-link.xml.XML");
import("org.active-link.xml.XMLDocument");
$myXML = new XML("PREFERENCES");
$myXML->setTagContent("Blue", "PREFERENCES/COLORSCHEME");
$myXML->setTagContent("Motif", "PREFERENCES/ICONS");
$myXML->setTagContent("", "PREFERENCES/NEWS/HEADLINES");
but now I have no idea how to print the xml they show:
<PREFERENCES>
<COLORSCHEME>Blue</COLORSCHEME>
<ICONS>Motif</ICONS>
<NEWS>
<HEADLINES />
</NEWS>
</PREFERENCES>