Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implement getNamespaces in XML::Twig::XPath::Elt #12

Open
garfieldnate opened this issue Jul 4, 2013 · 0 comments
Open

implement getNamespaces in XML::Twig::XPath::Elt #12

garfieldnate opened this issue Jul 4, 2013 · 0 comments

Comments

@garfieldnate
Copy link
Contributor

Here's a little script that dies:

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.

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant