Re: XML::LibXML XPath fails to find xmlns:xml="http://www.w3.org/XML/1998/namespace"
Robin Berjon <[email protected]>
| Newsgroups | gmane.comp.lang.perl.xml |
|---|---|
| Message-ID | <[email protected]> |
On Dec 30, 2008, at 07:51 , Emmanuel Rodriguez wrote:
> I think that this particular 'bug' is not so important since no one is
> supposed to overload that namespace. So I could safely and
> transparently
> add it to the XPath context without any problems.
It's not even that no one is supposed to overload it, in conforming
implementations no one *can* overload it. Not only are all names that
begin with any case variation on 'xml' reserved, but the http://www.w3.org/XML/1998/namespace
namespace can only be bound to 'xml' and vice-versa.
Since it is always defined (as is the xmlns namespace) I would
recommend that you just always make them appear in your application.
--
Robin Berjon - http://berjon.com/
Feel like hiring me? Go to http://robineko.com/
_______________________________________________
Perl-XML mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs