RE: [PHP] SimpleXML node detection.
> My peoblem is that i have something like the following xml... > > ~ > ~foo > ~foo > ~ > ~ > Any ideas on how i can check to see it the ignore node > exists or not? You can't. This is a bug that just recently came to the developers attention, and is currently being discussed on the internals list. Cheers, Rick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] SimpleXML node detection.
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Morning all, Hopefully a quick question i need to check if a node exists for a SimpleXML object but no matter how i try i simple cant find a way to do this as it always creates a new object even if the node dosen't exist in the xml document. My peoblem is that i have something like the following xml... ~ ~foo ~foo ~ ~ ~ ~blah ~blah ~ Where there is an ignore tag to specify that i ignore that item Any ideas on how i can check to see it the ignore node exists or not? - -- Regards, William Bailey. Pro-Net Internet Services Ltd. http://www.pro-net.co.uk/ -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.1 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFAYV7azSfrYDJMXmERAlSQAJ40wLIRmbSy0vKy0bdLSqU/JGnqbACfd/Hc 114wFBzKu+Z6JvsosvuRKBA= =lhbH -END PGP SIGNATURE- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php