I'm looping over a array like so:
$objDOM->load("URL");
foreach ($objDOM->getElementsByTagName('CRPublication') as $node) {
$itemVacature = array (
'naam' => $node->getElementsByTagName('titleInformation')->item(0)->nodeValue
}
Now the loaded XML node has an dynamic id. Is it possible to get the value from the id where getElementsByTagName is titleInformation?
The xml node I need to get the id from looks like so:
<createdBy>
<CRUser id="122"></CRUser>
</createdBy>
<modifiedBy>
<CRUser id="122"></CRUser>
</modifiedBy>
<owner>
<CRUser id="122"></CRUser>
</owner>
As you can see I only get the id from this external company. I have to convert these id's to values that make sense.
Thanks in advance!