I’ve tried to print using looping but it is not printing the next element.
Please give me a simple example which explains best. using PHP DOM
Secondly can I get some Xth element which has that id.
update
Thanks. I got error when creating elements with same id so changed it to class (sorry am newbie to programming, thanks for uplifting me). So can you please let me know how I can extract all the elements those which are having same class name and Secondly can I get some Xth element from the document which has that class name.
refer this link
u may use this
http://uk.php.net/manual/en/domnodelist.item.php
or this