Don't ask to ask, just ask | |
PerlMonks |
Re: XML::LibXML and Namespace… I don't get itby tobyink (Canon) |
on Jun 06, 2014 at 16:08 UTC ( [id://1089055]=note: print w/replies, xml ) | Need Help?? |
The namespace is this bit:
Not this bit:
So you should be setting up your XPath context like this:
That said, it's probably not a good idea to use the name "xml" for the XHTML namespace. Names beginning with those three letters are reserved for special purposes by the XML specification. So it's probably a better idea to use a different name:
use Moops; class Cow :rw { has name => (default => 'Ermintrude') }; say Cow->new->name
In Section
Seekers of Perl Wisdom
|
|