Jeb Barger wrote: > > > I am have a hard time parsing a xml file from IIS box. What is the > easiest way to parse a xml gotten from a url and parse the information > into variables? Make Sense? > > Jeb
<?php
echo "<pre>\n";
$xml = urldecode($_GET['xml_param']);
var_dump($xml);
/** PHP5 */
$sxe = simplexml_load_string($xml);
foreach ($sxe as $item) {
var_dump($item);
}
echo "</pre>";
?>
--
Teach a man to fish...
NEW? | http://www.catb.org/~esr/faqs/smart-questions.html
STFA | http://marc.theaimsgroup.com/?l=php-general&w=2
STFM | http://php.net/manual/en/index.php
STFW | http://www.google.com/search?q=php
LAZY |
http://mycroft.mozdev.org/download.html?name=PHP&submitform=Find+search+plugins
signature.asc
Description: OpenPGP digital signature
