XML
Menu
Home
Who Am I
Links
Projects
Scripts
E-Mail

Issues
Info
 
Example 01 - Basic XML and PHP Parsing

So we based this on a simple example. You've got you basic XML file. And then parse this File with PHP and see what happens.
 
XML File (example-01.xml):
<fridge model='myModel'>
    <note type='todo'>
       <item>Put out Trash</item>
       <item>Clean Up Room</item>
    </note>
    <note type='simple'>Simple Note</note>
</fridge>
 
PHP File (example-01.php):

Warning: require() [function.require]: URL file-access is disabled in the server configuration in /export/www/gonio.sambalbij.nl/htdocs/projects/xml/page02.php on line 37

Warning: require(http://gonio.sambalbij.nl/projects/xml/example-01.phps) [function.require]: failed to open stream: no suitable wrapper could be found in /export/www/gonio.sambalbij.nl/htdocs/projects/xml/page02.php on line 37

Fatal error: require() [function.require]: Failed opening required 'http://gonio.sambalbij.nl/projects/xml/example-01.phps' (include_path='.:/usr/share/php:/usr/share/awl/inc') in /export/www/gonio.sambalbij.nl/htdocs/projects/xml/page02.php on line 37