| <?php | |
| require_once "xmlparser.class.php"; | |
| require_once "xmlhandler.class.php"; | |
| $file = "http://phoenix.eclipse.org/org/processes/fakereports/birt/eclipse-project-info.xml"; | |
| $p =& new XMLParser(); | |
| $p->parse($file); | |
| $h = new XMLHandler($p->getOutput()); | |
| $node = $h->getNodeByPath("/project/shipping"); | |
| echo "<html><body>\n"; | |
| print_r($node); | |
| #print $node['name']."\n"; | |
| print "<br>".$node['attrs']['URL']."<br>\n"; | |
| echo "</body></html>"; | |
| ?> |