Парсер XML
<?php | |
$uploadfile="<Root><Boobs><B1>ffff<B1></Boobs></Root>" | |
$dom = new domDocument; | |
$file=file_get_contents($uploadfile); | |
$dom->loadXML($file); | |
if (!$dom) { | |
echo 'Ошибка при обработке'; | |
exit; | |
} | |
$s = simplexml_import_dom($dom); | |
echo $s->Boobs[0]->B1; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment