I have the following XML-structure:
<Folder>
<Placemark>
<ExtendedData>
<Data name="Id">
<value>152285415</value>
</Data>
<Data name="Name">
<value>Tester</value>
</Data>
</ExtendedData>
</Placemark>
</Folder>
and I need to directly access the of the -Object with the attribute "name" = "Id".
So I tried this:
$xml->Document->Folder->Placemark->ExtendedData->xpath('data[@name="Id"]')
but that gives and empty array.
What I need in the end is "152285415"
Any help appreciated.