Re: [PHP-DEV] SimpleXML emptiness

2007-07-03 Thread David Coallier
On 7/2/07, Sara Golemon [EMAIL PROTECTED] wrote: Currently, an empty check like the following returns false because SimpleXML only checks for node existence in has_property. I'd like to propose the attached patch to change this to look at the node's children and apply PHP's emptiness rules to

[PHP-DEV] SimpleXML emptiness

2007-07-02 Thread Sara Golemon
Currently, an empty check like the following returns false because SimpleXML only checks for node existence in has_property. I'd like to propose the attached patch to change this to look at the node's children and apply PHP's emptiness rules to the content. $data = '?xml version=1.0 ? doc