I have tried almost everything but i cannot seem to read the namespaced "m:inline" element and the "feed" and "title" children from the following SimpleXMLElement dump:
SimpleXMLElement {#235
+"@attributes": array:4 [
"rel" => "http://schemas.microsoft.com/ado/2007/08/dataservices/related/test"
"type" => "application/atom+xml;type=feed"
"title" => "some title"
"href" => "JobRequisition(23453453L)/Test"
]
+"m:inline": SimpleXMLElement {#152
+"feed": SimpleXMLElement {#123
+"title": "jobReqLocale"
...some more data ahead skipped here
The raw xml start:
<link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/jobReqLocale" type="application/atom+xml;type=feed" title="some title" href="JobRequisition(23453453L)/Test">
<m:inline>
<feed>
<title type="text">jobReqLocale</title>
...
I have tried:
$simpleXmlElement = new SimpleXMLElement($xml, LIBXML_NOERROR, false);
dd($simpleXmlElement->children('m', true)->feed);
The result is always an empty SimpleXmlElement
with all kinds of variations including xpath. Am i doing something wrong? Is SimpleXML not supporting these kinds of structures?