GMgKe586q6suSQnyqZLlGCooeWM
Learn To Program
Increase Your Knowlegde and Build Your Skill!
Pages
Home
Me
Search
Wednesday, January 12, 2011
Presenting XML Document Using PHP
It's simple to present an xml document to browser using php:
<?php
header("Content-type: text/xml");
$dom = new DOMDocument();
$dom->load("index.xml");
echo $dom->saveXML();
?>
The result can be manipulated using ajax as a responseXML property.
Presenting XML Document Using PHP
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment