Re: External references in xml headers
Aristotle Pagaltzis <[email protected]>
| Newsgroups | gmane.comp.lang.perl.xml |
|---|---|
| Message-ID | <[email protected]> |
* Dave Howorth <[email protected]> [2008-05-20 16:30]: > Aristotle Pagaltzis wrote: > > The API is virtually identical. > > Sadly not in the presence of namespaces :( But I'd still > recommend XML::LibXML. > > my @entries = $xc->findnodes('/uniprot/entry'); # XML::XPath > becomes > my @entries = $xc->findnodes('/u:uniprot/u:entry'); # XML::LibXML Yes, particularly because the XML::XPath way of doing this is in violation of the XPath spec. XPath has no concept of a default namespace and it specifies that elements written without a prefix (which must be declared to be bound to a namespace of course) match only elements in the null namespace. In this respect XML::XPath is in fact broken. Regards, -- Aristotle Pagaltzis // <http://plasmasturm.org/> _______________________________________________ Perl-XML mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs