PHP/XML/XML File Read
simplexml_load_file: load xml and output
<source lang="html4strict">
<?php
$xml = simplexml_load_file("books.xml"); echo htmlspecialchars($xml->asXML());
?>
</source>
Use simplexml_load_file to load xml file
<source lang="html4strict">
<?php
$xml = simplexml_load_file("contact.xml"); var_dump($xml);
?>
</source>
XML file dump
<source lang="html4strict">
<?php
$xml = simplexml_load_file("contact.xml"); var_dump($xml);
?>
</source>