here is my xml DOM.
<entities>
<entity id="7006276">
<title>xxx</title>
<entities>
<entity id="7877579">
<title>xxx</title>
<entities>
i want to get the 'entity' with id 7006276 so i could access its child 'entities' to create some 'entity' elements for it.
i have tried:
$this->xmlDocument = new DOMDocument();
// some code creating the above elements (you dont have to care about this comment code...it just creates the above xml structure
// $this->xmlDocument->createElement('entity');
// $sourceEntityElement->appendChild($newEntityElement);
// and so on...
// now i want to get the entities mentioned...
$xmlEntities = $this->xmlDocument->getElementById('7006276')->entities;
but it doesnt seem to work. any idea how i get it so i can create more 'entity' elements?