help with DOMDocument class in php

Posted by noname on Stack Overflow See other posts from Stack Overflow or by noname
Published on 2010-03-14T04:37:19Z Indexed on 2010/03/14 4:45 UTC
Read the original article Hit count: 302

Filed under:
|
|

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?

© Stack Overflow or respective owner

Related posts about php

Related posts about dom