package to create XUL documents
To create a new document you have to call createDocument() statically:
require_once 'XML/XUL.php'; $doc = &XML_XUL::createDocument( 'myXUL.xml', 'myNs' );
The document object provides methods to create and add any element you like:
$win = &$doc->createElement('window', array('title'=> 'Example for PEAR::XML_XUL')); $doc->addRoot($win);
string apiVersion( )
void &createDocument( [string $filename = null], [string $ns = null], [string $encoding = null])
void &loadFile( string $filename)
void &loadString( string $filename, [ $ns = null])