I have no idea what kind of XML this is and how to read it with simplexml in PHP...
<abc:documents count="1">
<def:doc>
<def:serial-item>
<ghi xml:lang="en" version="5.1">
<item-info>...</item-info>
<jkl:something>...</jkl:something>
<head>...</head>
<body view="all">...</body>
</ghi>
</def:doc>
</abc:documents>
When I simply do:
$xml = simplexml_load_file('file.xml'); //with above content
var_dump($xml);
I get:
object(SimpleXMLElement)#1 (1) { ["@attributes"]=> array(1) { ["count"]=> string(1) "1" } }