Load XML file in PHP

class doc

{

bool load_doc ( string filename )

}

Loads and XML document from a file.

Examples:

 

<?php
$document1
= DOMDocument::load(‘example.xml’);
echo
$document1->saveXML();

$document1 = new DOMDocument();
$docoument1->load(‘book.xml’);
echo
$document1->saveXML();
?>

Posted By:V.Mahesh

Posted by Mahesh ( Tryangled )

Leave a Reply

You must be logged in to post a comment.