parse xml with php

$reader = new XMLReader();
$reader->XML($data);
while ($reader->read()){
echo $reader->name;
if ($reader->hasValue) {
echo “: ” . $reader->value;
}
}
$reader->close();

Leave a Reply

Your email address will not be published. Required fields are marked *