| Welcome to WebmasterWorld Guest from 220.127.116.11 |
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
|php domDocument check node exists|
checking for a node to exist in an xml file using php
| 10:22 am on Nov 28, 2008 (gmt 0)|
This is my first time posting a problem. I would like to check if an element exists in an xml file through php. Does anyone know how to go around this?
| 8:41 am on Nov 29, 2008 (gmt 0)|
By ID you can do:
DomDocument->get_element_by_id ( string $id )
When it succeeds, then the node exists.
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
© Webmaster World 1996-2014 all rights reserved