You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use XML::Twig::XPath;
XML::Twig::XPath->new()->
parse('<xml xmlns:foo="www.bar.com"/>')->
findnodes('//namespace::*');
The error printed is:
axis axis_namespace not implemented [Can't locate object method "getNamespaces" via package "XML::Twig::XPath::Elt" at C:/strawberry/perl/site/lib/XML/XPath/Step.pm line 301.]
XML::Twig::XPath::Elt has a getNamespace method, but no getNamespaces method, which is apparently required in this case via XML::XPath::Step line 173.
The text was updated successfully, but these errors were encountered:
jsonn
pushed a commit
to jsonn/pkgsrc
that referenced
this issue
Nov 28, 2016
Upstream changes:
3.52 - 2016-11-23 - minor maintenance release
- fixed: the previous fix was buggy...
3.51 - 2016-11-23 - minor maintenance release
- fixed: failing tests when XML::XPathEngine and XML::XPath not available
3.50 - 2016-11-22 - minor maintenance release
- added: the no_xxe option to XML::Twig::new, which causes the parse
to fail if external entities are used (to prevent malicious XML to
access the filesystem).
See RT#118097 https://rt.cpan.org/Public/Bug/Display.html?id=118097
- fixed: warning (and soon error) due to unescaped literal left braces
in regular expressions in the code generating Twig.pm
reported by trwyant
mirod/xmltwig#26
- fixed: (partial fix) implement getNamespaces in XML::Twig::XPath::Elt
the expression doesn't crash the code, but doesn't return anything
interesting (yet)
reported by Nathan Glenn
mirod/xmltwig#12
- fixed: various spelling mistakes
mirod/xmltwig#24
thanks to James McCoy for the patch
- git repo cleanup, thanks to mjg17
Here's a little script that dies:
The error printed is:
XML::Twig::XPath::Elt has a
getNamespace
method, but nogetNamespaces
method, which is apparently required in this case viaXML::XPath::Step
line 173.The text was updated successfully, but these errors were encountered: