$reader = new XMLReader();
$reader->XML($data);
while ($reader->read()){
echo $reader->name;
if ($reader->hasValue) {
echo “: ” . $reader->value;
}
}
$reader->close();
parse xml with php
Leave a reply
$reader = new XMLReader();
$reader->XML($data);
while ($reader->read()){
echo $reader->name;
if ($reader->hasValue) {
echo “: ” . $reader->value;
}
}
$reader->close();