Re: [PHP-XML-DEV] Dom and SimpleXml Xpath return types
[email protected] ("Rob Richards") Wed, 3 Mar 2004 12:16:48 -0500
| Newsgroups | php.xml.dev |
|---|---|
| Message-ID | <[email protected]> |
> >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