Re: Dom and SimpleXml Xpath return types
| From: | Rob Richards | Date: | Wed, 03 Mar 2004 17:16:48 +0000 |
| Subject: | Re: Dom and SimpleXml Xpath return types | ||
| References: | 1 | Groups: | php.xml.dev |
| Request: | Send a blank email to php-xml-dev+get-343@lists.php.net to get a copy of this message | ||
> >From my understanding of the XPath spec, there should be four return
types:
> NodeSet, number, string or boolean. Using either Dom or SimpleXml I don't
> seem to be able to get anything except a NodeSet (either an object or an
> array respectively).
xpath is not fully implemented and is currently only returning nodesets.
And pertaining to your earlier question, simplexml is only returning an
array if it has a nodeset to return.
Rob