help with DOMDocument class in php
- by noname
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:
$xmlElementById = $this->DOMDocument_object->getElementById('7006276');
but it doesnt seem to work. any idea how i get it so i can create more 'entity' elements?