Example #1
0
 function buildStruct($xmldata)
 {
     // Create a parser object
     $p = new XMLParser();
     // Define our known namespaces
     foreach ($this->namespaces as $space => $uri) {
         $p->definens($space, $uri);
     }
     // Define base namespace
     $p->definens("UNDEF");
     //$this->parseEntities($xmldata);
     // Tell the parser to get the file.
     $p->setXmlData($xmldata);
     // Tell the parser to build the tree.
     $p->buildXmlTree();
     // Spit the tree out so we can see it
     return $p->getXmlTree();
 }