Hello community,

here is the log from the commit of package perl-XML-XPath for openSUSE:Factory 
checked in at 2016-11-11 14:31:31
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-XML-XPath (Old)
 and      /work/SRC/openSUSE:Factory/.perl-XML-XPath.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "perl-XML-XPath"

Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-XML-XPath/perl-XML-XPath.changes    
2016-07-01 09:56:03.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.perl-XML-XPath.new/perl-XML-XPath.changes       
2016-11-11 14:31:33.000000000 +0100
@@ -1,0 +2,9 @@
+Tue Nov  1 07:34:05 UTC 2016 - co...@suse.com
+
+- updated to 1.38
+   see /usr/share/doc/packages/perl-XML-XPath/Changes
+
+  1.38  2016-10-31 MANWAR
+        - Fixed parser caching as reported by Jeremy (mysticprune).
+
+-------------------------------------------------------------------

Old:
----
  XML-XPath-1.37.tar.gz

New:
----
  XML-XPath-1.38.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ perl-XML-XPath.spec ++++++
--- /var/tmp/diff_new_pack.SR6TUR/_old  2016-11-11 14:31:34.000000000 +0100
+++ /var/tmp/diff_new_pack.SR6TUR/_new  2016-11-11 14:31:34.000000000 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           perl-XML-XPath
-Version:        1.37
+Version:        1.38
 Release:        0
 %define cpan_name XML-XPath
 Summary:        Parse and evaluate XPath statements

++++++ XML-XPath-1.37.tar.gz -> XML-XPath-1.38.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/XML-XPath-1.37/Changes new/XML-XPath-1.38/Changes
--- old/XML-XPath-1.37/Changes  2016-06-02 11:38:39.000000000 +0200
+++ new/XML-XPath-1.38/Changes  2016-10-31 10:44:00.000000000 +0100
@@ -1,5 +1,8 @@
 Revision history for XML::XPath
 
+1.38  2016-10-31 MANWAR
+      - Fixed parser caching as reported by Jeremy (mysticprune).
+
 1.37  2016-06-02 MANWAR
       - Fixed annoying warnings.
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/XML-XPath-1.37/MANIFEST new/XML-XPath-1.38/MANIFEST
--- old/XML-XPath-1.37/MANIFEST 2016-06-02 11:39:11.000000000 +0200
+++ new/XML-XPath-1.38/MANIFEST 2016-10-31 10:44:34.000000000 +0100
@@ -78,6 +78,7 @@
 t/47position.t
 t/48translate.t
 t/49literal.t
+t/50xmlxpathparsercache.t
 t/rdf.t
 t/remove.t
 t/insert.t
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/XML-XPath-1.37/META.json new/XML-XPath-1.38/META.json
--- old/XML-XPath-1.37/META.json        2016-06-02 11:39:11.000000000 +0200
+++ new/XML-XPath-1.38/META.json        2016-10-31 10:44:34.000000000 +0100
@@ -4,7 +4,7 @@
       "Matt Sergeant, AxKit.com Ltd"
    ],
    "dynamic_config" : 1,
-   "generated_by" : "ExtUtils::MakeMaker version 7.16, CPAN::Meta::Converter 
version 2.150005",
+   "generated_by" : "ExtUtils::MakeMaker version 7.18, CPAN::Meta::Converter 
version 2.150005",
    "license" : [
       "artistic_2"
    ],
@@ -41,91 +41,91 @@
    "provides" : {
       "XML::XPath" : {
          "file" : "lib/XML/XPath.pm",
-         "version" : "1.37"
+         "version" : "1.38"
       },
       "XML::XPath::Boolean" : {
          "file" : "lib/XML/XPath/Boolean.pm",
-         "version" : "1.37"
+         "version" : "1.38"
       },
       "XML::XPath::Builder" : {
          "file" : "lib/XML/XPath/Builder.pm",
-         "version" : "1.37"
+         "version" : "1.38"
       },
       "XML::XPath::Expr" : {
          "file" : "lib/XML/XPath/Expr.pm",
-         "version" : "1.37"
+         "version" : "1.38"
       },
       "XML::XPath::Function" : {
          "file" : "lib/XML/XPath/Function.pm",
-         "version" : "1.37"
+         "version" : "1.38"
       },
       "XML::XPath::Literal" : {
          "file" : "lib/XML/XPath/Literal.pm",
-         "version" : "1.37"
+         "version" : "1.38"
       },
       "XML::XPath::LocationPath" : {
          "file" : "lib/XML/XPath/LocationPath.pm",
-         "version" : "1.37"
+         "version" : "1.38"
       },
       "XML::XPath::Node" : {
          "file" : "lib/XML/XPath/Node.pm",
-         "version" : "1.37"
+         "version" : "1.38"
       },
       "XML::XPath::Node::Attribute" : {
          "file" : "lib/XML/XPath/Node/Attribute.pm",
-         "version" : "1.37"
+         "version" : "1.38"
       },
       "XML::XPath::Node::Comment" : {
          "file" : "lib/XML/XPath/Node/Comment.pm",
-         "version" : "1.37"
+         "version" : "1.38"
       },
       "XML::XPath::Node::Element" : {
          "file" : "lib/XML/XPath/Node/Element.pm",
-         "version" : "1.37"
+         "version" : "1.38"
       },
       "XML::XPath::Node::Namespace" : {
          "file" : "lib/XML/XPath/Node/Namespace.pm",
-         "version" : "1.37"
+         "version" : "1.38"
       },
       "XML::XPath::Node::PI" : {
          "file" : "lib/XML/XPath/Node/PI.pm",
-         "version" : "1.37"
+         "version" : "1.38"
       },
       "XML::XPath::Node::Text" : {
          "file" : "lib/XML/XPath/Node/Text.pm",
-         "version" : "1.37"
+         "version" : "1.38"
       },
       "XML::XPath::NodeSet" : {
          "file" : "lib/XML/XPath/NodeSet.pm",
-         "version" : "1.37"
+         "version" : "1.38"
       },
       "XML::XPath::Number" : {
          "file" : "lib/XML/XPath/Number.pm",
-         "version" : "1.37"
+         "version" : "1.38"
       },
       "XML::XPath::Parser" : {
          "file" : "lib/XML/XPath/Parser.pm",
-         "version" : "1.37"
+         "version" : "1.38"
       },
       "XML::XPath::PerlSAX" : {
          "file" : "lib/XML/XPath/PerlSAX.pm",
-         "version" : "1.37"
+         "version" : "1.38"
       },
       "XML::XPath::Root" : {
          "file" : "lib/XML/XPath/Root.pm",
-         "version" : "1.37"
+         "version" : "1.38"
       },
       "XML::XPath::Step" : {
          "file" : "lib/XML/XPath/Step.pm",
-         "version" : "1.37"
+         "version" : "1.38"
       },
       "XML::XPath::Variable" : {
          "file" : "lib/XML/XPath/Variable.pm",
-         "version" : "1.37"
+         "version" : "1.38"
       },
       "XML::XPath::XMLParser" : {
          "file" : "lib/XML/XPath/XMLParser.pm",
-         "version" : "1.37"
+         "version" : "1.38"
       }
    },
    "release_status" : "stable",
@@ -136,6 +136,6 @@
          "web" : "https://github.com/manwar/XML-XPath";
       }
    },
-   "version" : "1.37",
+   "version" : "1.38",
    "x_serialization_backend" : "JSON::PP version 2.27300"
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/XML-XPath-1.37/META.yml new/XML-XPath-1.38/META.yml
--- old/XML-XPath-1.37/META.yml 2016-06-02 11:39:11.000000000 +0200
+++ new/XML-XPath-1.38/META.yml 2016-10-31 10:44:34.000000000 +0100
@@ -8,7 +8,7 @@
 configure_requires:
   ExtUtils::MakeMaker: '0'
 dynamic_config: 1
-generated_by: 'ExtUtils::MakeMaker version 7.16, CPAN::Meta::Converter version 
2.150005'
+generated_by: 'ExtUtils::MakeMaker version 7.18, CPAN::Meta::Converter version 
2.150005'
 license: artistic_2
 meta-spec:
   url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -21,74 +21,74 @@
 provides:
   XML::XPath:
     file: lib/XML/XPath.pm
-    version: '1.37'
+    version: '1.38'
   XML::XPath::Boolean:
     file: lib/XML/XPath/Boolean.pm
-    version: '1.37'
+    version: '1.38'
   XML::XPath::Builder:
     file: lib/XML/XPath/Builder.pm
-    version: '1.37'
+    version: '1.38'
   XML::XPath::Expr:
     file: lib/XML/XPath/Expr.pm
-    version: '1.37'
+    version: '1.38'
   XML::XPath::Function:
     file: lib/XML/XPath/Function.pm
-    version: '1.37'
+    version: '1.38'
   XML::XPath::Literal:
     file: lib/XML/XPath/Literal.pm
-    version: '1.37'
+    version: '1.38'
   XML::XPath::LocationPath:
     file: lib/XML/XPath/LocationPath.pm
-    version: '1.37'
+    version: '1.38'
   XML::XPath::Node:
     file: lib/XML/XPath/Node.pm
-    version: '1.37'
+    version: '1.38'
   XML::XPath::Node::Attribute:
     file: lib/XML/XPath/Node/Attribute.pm
-    version: '1.37'
+    version: '1.38'
   XML::XPath::Node::Comment:
     file: lib/XML/XPath/Node/Comment.pm
-    version: '1.37'
+    version: '1.38'
   XML::XPath::Node::Element:
     file: lib/XML/XPath/Node/Element.pm
-    version: '1.37'
+    version: '1.38'
   XML::XPath::Node::Namespace:
     file: lib/XML/XPath/Node/Namespace.pm
-    version: '1.37'
+    version: '1.38'
   XML::XPath::Node::PI:
     file: lib/XML/XPath/Node/PI.pm
-    version: '1.37'
+    version: '1.38'
   XML::XPath::Node::Text:
     file: lib/XML/XPath/Node/Text.pm
-    version: '1.37'
+    version: '1.38'
   XML::XPath::NodeSet:
     file: lib/XML/XPath/NodeSet.pm
-    version: '1.37'
+    version: '1.38'
   XML::XPath::Number:
     file: lib/XML/XPath/Number.pm
-    version: '1.37'
+    version: '1.38'
   XML::XPath::Parser:
     file: lib/XML/XPath/Parser.pm
-    version: '1.37'
+    version: '1.38'
   XML::XPath::PerlSAX:
     file: lib/XML/XPath/PerlSAX.pm
-    version: '1.37'
+    version: '1.38'
   XML::XPath::Root:
     file: lib/XML/XPath/Root.pm
-    version: '1.37'
+    version: '1.38'
   XML::XPath::Step:
     file: lib/XML/XPath/Step.pm
-    version: '1.37'
+    version: '1.38'
   XML::XPath::Variable:
     file: lib/XML/XPath/Variable.pm
-    version: '1.37'
+    version: '1.38'
   XML::XPath::XMLParser:
     file: lib/XML/XPath/XMLParser.pm
-    version: '1.37'
+    version: '1.38'
 requires:
   XML::Parser: '2.23'
   perl: '5.006'
 resources:
   repository: https://github.com/manwar/XML-XPath.git
-version: '1.37'
+version: '1.38'
 x_serialization_backend: 'CPAN::Meta::YAML version 0.018'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/XML-XPath-1.37/Makefile.PL 
new/XML-XPath-1.38/Makefile.PL
--- old/XML-XPath-1.37/Makefile.PL      2016-06-02 11:29:03.000000000 +0200
+++ new/XML-XPath-1.38/Makefile.PL      2016-10-29 20:56:30.000000000 +0200
@@ -27,28 +27,28 @@
     (eval { ExtUtils::MakeMaker->VERSION(6.46) } ? (META_MERGE => {
         'meta-spec' => { version => 2 },
         provides    => {
-            'XML::XPath'                  => { file => 'lib/XML/XPath.pm',     
           version => '1.37' },
-            'XML::XPath::XMLParser'       => { file => 
'lib/XML/XPath/XMLParser.pm',      version => '1.37' },
-            'XML::XPath::Parser'          => { file => 
'lib/XML/XPath/Parser.pm',         version => '1.37' },
-            'XML::XPath::Expr'            => { file => 
'lib/XML/XPath/Expr.pm',           version => '1.37' },
-            'XML::XPath::Function'        => { file => 
'lib/XML/XPath/Function.pm',       version => '1.37' },
-            'XML::XPath::Literal'         => { file => 
'lib/XML/XPath/Literal.pm',        version => '1.37' },
-            'XML::XPath::LocationPath'    => { file => 
'lib/XML/XPath/LocationPath.pm',   version => '1.37' },
-            'XML::XPath::Number'          => { file => 
'lib/XML/XPath/Number.pm',         version => '1.37' },
-            'XML::XPath::Node'            => { file => 
'lib/XML/XPath/Node.pm',           version => '1.37' },
-            'XML::XPath::Node::Element'   => { file => 
'lib/XML/XPath/Node/Element.pm',   version => '1.37' },
-            'XML::XPath::Node::Attribute' => { file => 
'lib/XML/XPath/Node/Attribute.pm', version => '1.37' },
-            'XML::XPath::Node::Text'      => { file => 
'lib/XML/XPath/Node/Text.pm',      version => '1.37' },
-            'XML::XPath::Node::Namespace' => { file => 
'lib/XML/XPath/Node/Namespace.pm', version => '1.37' },
-            'XML::XPath::Node::PI'        => { file => 
'lib/XML/XPath/Node/PI.pm',        version => '1.37' },
-            'XML::XPath::Node::Comment'   => { file => 
'lib/XML/XPath/Node/Comment.pm',   version => '1.37' },
-            'XML::XPath::Step'            => { file => 
'lib/XML/XPath/Step.pm',           version => '1.37' },
-            'XML::XPath::Variable'        => { file => 
'lib/XML/XPath/Variable.pm',       version => '1.37' },
-            'XML::XPath::NodeSet'         => { file => 
'lib/XML/XPath/NodeSet.pm',        version => '1.37' },
-            'XML::XPath::Boolean'         => { file => 
'lib/XML/XPath/Boolean.pm',        version => '1.37' },
-            'XML::XPath::Root'            => { file => 
'lib/XML/XPath/Root.pm',           version => '1.37' },
-            'XML::XPath::PerlSAX'         => { file => 
'lib/XML/XPath/PerlSAX.pm',        version => '1.37' },
-            'XML::XPath::Builder'         => { file => 
'lib/XML/XPath/Builder.pm',        version => '1.37' },
+            'XML::XPath'                  => { file => 'lib/XML/XPath.pm',     
           version => '1.38' },
+            'XML::XPath::XMLParser'       => { file => 
'lib/XML/XPath/XMLParser.pm',      version => '1.38' },
+            'XML::XPath::Parser'          => { file => 
'lib/XML/XPath/Parser.pm',         version => '1.38' },
+            'XML::XPath::Expr'            => { file => 
'lib/XML/XPath/Expr.pm',           version => '1.38' },
+            'XML::XPath::Function'        => { file => 
'lib/XML/XPath/Function.pm',       version => '1.38' },
+            'XML::XPath::Literal'         => { file => 
'lib/XML/XPath/Literal.pm',        version => '1.38' },
+            'XML::XPath::LocationPath'    => { file => 
'lib/XML/XPath/LocationPath.pm',   version => '1.38' },
+            'XML::XPath::Number'          => { file => 
'lib/XML/XPath/Number.pm',         version => '1.38' },
+            'XML::XPath::Node'            => { file => 
'lib/XML/XPath/Node.pm',           version => '1.38' },
+            'XML::XPath::Node::Element'   => { file => 
'lib/XML/XPath/Node/Element.pm',   version => '1.38' },
+            'XML::XPath::Node::Attribute' => { file => 
'lib/XML/XPath/Node/Attribute.pm', version => '1.38' },
+            'XML::XPath::Node::Text'      => { file => 
'lib/XML/XPath/Node/Text.pm',      version => '1.38' },
+            'XML::XPath::Node::Namespace' => { file => 
'lib/XML/XPath/Node/Namespace.pm', version => '1.38' },
+            'XML::XPath::Node::PI'        => { file => 
'lib/XML/XPath/Node/PI.pm',        version => '1.38' },
+            'XML::XPath::Node::Comment'   => { file => 
'lib/XML/XPath/Node/Comment.pm',   version => '1.38' },
+            'XML::XPath::Step'            => { file => 
'lib/XML/XPath/Step.pm',           version => '1.38' },
+            'XML::XPath::Variable'        => { file => 
'lib/XML/XPath/Variable.pm',       version => '1.38' },
+            'XML::XPath::NodeSet'         => { file => 
'lib/XML/XPath/NodeSet.pm',        version => '1.38' },
+            'XML::XPath::Boolean'         => { file => 
'lib/XML/XPath/Boolean.pm',        version => '1.38' },
+            'XML::XPath::Root'            => { file => 
'lib/XML/XPath/Root.pm',           version => '1.38' },
+            'XML::XPath::PerlSAX'         => { file => 
'lib/XML/XPath/PerlSAX.pm',        version => '1.38' },
+            'XML::XPath::Builder'         => { file => 
'lib/XML/XPath/Builder.pm',        version => '1.38' },
         },
         resources   => {
             repository => {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/XML-XPath-1.37/lib/XML/XPath/Boolean.pm 
new/XML-XPath-1.38/lib/XML/XPath/Boolean.pm
--- old/XML-XPath-1.37/lib/XML/XPath/Boolean.pm 2016-06-02 11:29:33.000000000 
+0200
+++ new/XML-XPath-1.38/lib/XML/XPath/Boolean.pm 2016-10-29 20:48:30.000000000 
+0200
@@ -1,6 +1,6 @@
 package XML::XPath::Boolean;
 
-$VERSION = '1.37';
+$VERSION = '1.38';
 
 use XML::XPath::Number;
 use XML::XPath::Literal;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/XML-XPath-1.37/lib/XML/XPath/Builder.pm 
new/XML-XPath-1.38/lib/XML/XPath/Builder.pm
--- old/XML-XPath-1.37/lib/XML/XPath/Builder.pm 2016-06-02 11:29:45.000000000 
+0200
+++ new/XML-XPath-1.38/lib/XML/XPath/Builder.pm 2016-10-29 20:48:42.000000000 
+0200
@@ -1,6 +1,6 @@
 package XML::XPath::Builder;
 
-$VERSION = '1.37';
+$VERSION = '1.38';
 
 use strict; use warnings;
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/XML-XPath-1.37/lib/XML/XPath/Expr.pm 
new/XML-XPath-1.38/lib/XML/XPath/Expr.pm
--- old/XML-XPath-1.37/lib/XML/XPath/Expr.pm    2016-06-02 11:29:55.000000000 
+0200
+++ new/XML-XPath-1.38/lib/XML/XPath/Expr.pm    2016-10-29 20:48:51.000000000 
+0200
@@ -1,6 +1,6 @@
 package XML::XPath::Expr;
 
-$VERSION = '1.37';
+$VERSION = '1.38';
 
 use strict; use warnings;
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/XML-XPath-1.37/lib/XML/XPath/Function.pm 
new/XML-XPath-1.38/lib/XML/XPath/Function.pm
--- old/XML-XPath-1.37/lib/XML/XPath/Function.pm        2016-06-02 
11:37:13.000000000 +0200
+++ new/XML-XPath-1.38/lib/XML/XPath/Function.pm        2016-10-29 
20:49:06.000000000 +0200
@@ -1,6 +1,6 @@
 package XML::XPath::Function;
 
-$VERSION = '1.37';
+$VERSION = '1.38';
 
 use XML::XPath::Number;
 use XML::XPath::Literal;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/XML-XPath-1.37/lib/XML/XPath/Literal.pm 
new/XML-XPath-1.38/lib/XML/XPath/Literal.pm
--- old/XML-XPath-1.37/lib/XML/XPath/Literal.pm 2016-06-02 11:30:13.000000000 
+0200
+++ new/XML-XPath-1.38/lib/XML/XPath/Literal.pm 2016-10-29 20:49:18.000000000 
+0200
@@ -1,6 +1,6 @@
 package XML::XPath::Literal;
 
-$VERSION = '1.37';
+$VERSION = '1.38';
 
 use XML::XPath::Boolean;
 use XML::XPath::Number;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/XML-XPath-1.37/lib/XML/XPath/LocationPath.pm 
new/XML-XPath-1.38/lib/XML/XPath/LocationPath.pm
--- old/XML-XPath-1.37/lib/XML/XPath/LocationPath.pm    2016-06-02 
11:30:23.000000000 +0200
+++ new/XML-XPath-1.38/lib/XML/XPath/LocationPath.pm    2016-10-29 
20:49:26.000000000 +0200
@@ -1,6 +1,6 @@
 package XML::XPath::LocationPath;
 
-$VERSION = '1.37';
+$VERSION = '1.38';
 
 use XML::XPath::Root;
 use strict; use warnings;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/XML-XPath-1.37/lib/XML/XPath/Node/Attribute.pm 
new/XML-XPath-1.38/lib/XML/XPath/Node/Attribute.pm
--- old/XML-XPath-1.37/lib/XML/XPath/Node/Attribute.pm  2016-06-02 
11:30:50.000000000 +0200
+++ new/XML-XPath-1.38/lib/XML/XPath/Node/Attribute.pm  2016-10-29 
20:50:51.000000000 +0200
@@ -4,7 +4,7 @@
 use vars qw/@ISA $VERSION/;
 
 @ISA = ('XML::XPath::Node');
-$VERSION = '1.37';
+$VERSION = '1.38';
 
 package XML::XPath::Node::AttributeImpl;
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/XML-XPath-1.37/lib/XML/XPath/Node/Comment.pm 
new/XML-XPath-1.38/lib/XML/XPath/Node/Comment.pm
--- old/XML-XPath-1.37/lib/XML/XPath/Node/Comment.pm    2016-06-02 
11:31:02.000000000 +0200
+++ new/XML-XPath-1.38/lib/XML/XPath/Node/Comment.pm    2016-10-29 
20:51:45.000000000 +0200
@@ -1,6 +1,6 @@
 package XML::XPath::Node::Comment;
 
-$VERSION = '1.37';
+$VERSION = '1.38';
 
 use strict; use warnings;
 use vars qw/@ISA/;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/XML-XPath-1.37/lib/XML/XPath/Node/Element.pm 
new/XML-XPath-1.38/lib/XML/XPath/Node/Element.pm
--- old/XML-XPath-1.37/lib/XML/XPath/Node/Element.pm    2016-06-02 
11:31:13.000000000 +0200
+++ new/XML-XPath-1.38/lib/XML/XPath/Node/Element.pm    2016-10-29 
20:51:59.000000000 +0200
@@ -1,6 +1,6 @@
 package XML::XPath::Node::Element;
 
-$VERSION = '1.37';
+$VERSION = '1.38';
 
 use strict; use warnings;
 use vars qw/@ISA/;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/XML-XPath-1.37/lib/XML/XPath/Node/Namespace.pm 
new/XML-XPath-1.38/lib/XML/XPath/Node/Namespace.pm
--- old/XML-XPath-1.37/lib/XML/XPath/Node/Namespace.pm  2016-06-02 
11:32:33.000000000 +0200
+++ new/XML-XPath-1.38/lib/XML/XPath/Node/Namespace.pm  2016-10-29 
20:52:13.000000000 +0200
@@ -1,6 +1,6 @@
 package XML::XPath::Node::Namespace;
 
-$VERSION = '1.37';
+$VERSION = '1.38';
 
 use strict; use warnings;
 use vars qw/@ISA/;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/XML-XPath-1.37/lib/XML/XPath/Node/PI.pm 
new/XML-XPath-1.38/lib/XML/XPath/Node/PI.pm
--- old/XML-XPath-1.37/lib/XML/XPath/Node/PI.pm 2016-06-02 11:33:22.000000000 
+0200
+++ new/XML-XPath-1.38/lib/XML/XPath/Node/PI.pm 2016-10-29 20:52:22.000000000 
+0200
@@ -1,6 +1,6 @@
 package XML::XPath::Node::PI;
 
-$VERSION = '1.37';
+$VERSION = '1.38';
 
 use strict; use warnings;
 use vars qw/@ISA/;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/XML-XPath-1.37/lib/XML/XPath/Node/Text.pm 
new/XML-XPath-1.38/lib/XML/XPath/Node/Text.pm
--- old/XML-XPath-1.37/lib/XML/XPath/Node/Text.pm       2016-06-02 
11:33:31.000000000 +0200
+++ new/XML-XPath-1.38/lib/XML/XPath/Node/Text.pm       2016-10-29 
20:54:08.000000000 +0200
@@ -1,6 +1,6 @@
 package XML::XPath::Node::Text;
 
-$VERSION = '1.37';
+$VERSION = '1.38';
 
 use strict; use warnings;
 use vars qw/@ISA/;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/XML-XPath-1.37/lib/XML/XPath/Node.pm 
new/XML-XPath-1.38/lib/XML/XPath/Node.pm
--- old/XML-XPath-1.37/lib/XML/XPath/Node.pm    2016-06-02 11:30:34.000000000 
+0200
+++ new/XML-XPath-1.38/lib/XML/XPath/Node.pm    2016-10-29 20:50:04.000000000 
+0200
@@ -1,6 +1,6 @@
 package XML::XPath::Node;
 
-$VERSION = '1.37';
+$VERSION = '1.38';
 
 use strict; use warnings;
 use vars qw(@ISA @EXPORT $AUTOLOAD %EXPORT_TAGS @EXPORT_OK);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/XML-XPath-1.37/lib/XML/XPath/NodeSet.pm 
new/XML-XPath-1.38/lib/XML/XPath/NodeSet.pm
--- old/XML-XPath-1.37/lib/XML/XPath/NodeSet.pm 2016-06-02 11:34:21.000000000 
+0200
+++ new/XML-XPath-1.38/lib/XML/XPath/NodeSet.pm 2016-10-29 20:54:16.000000000 
+0200
@@ -1,6 +1,6 @@
 package XML::XPath::NodeSet;
 
-$VERSION = '1.37';
+$VERSION = '1.38';
 
 use strict; use warnings;
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/XML-XPath-1.37/lib/XML/XPath/Number.pm 
new/XML-XPath-1.38/lib/XML/XPath/Number.pm
--- old/XML-XPath-1.37/lib/XML/XPath/Number.pm  2016-06-02 11:34:32.000000000 
+0200
+++ new/XML-XPath-1.38/lib/XML/XPath/Number.pm  2016-10-29 20:54:24.000000000 
+0200
@@ -1,6 +1,6 @@
 package XML::XPath::Number;
 
-$VERSION = '1.37';
+$VERSION = '1.38';
 
 use XML::XPath::Boolean;
 use XML::XPath::Literal;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/XML-XPath-1.37/lib/XML/XPath/Parser.pm 
new/XML-XPath-1.38/lib/XML/XPath/Parser.pm
--- old/XML-XPath-1.37/lib/XML/XPath/Parser.pm  2016-06-02 11:34:42.000000000 
+0200
+++ new/XML-XPath-1.38/lib/XML/XPath/Parser.pm  2016-10-29 20:54:37.000000000 
+0200
@@ -1,6 +1,6 @@
 package XML::XPath::Parser;
 
-$VERSION = '1.37';
+$VERSION = '1.38';
 
 use strict; use warnings;
 use vars qw/
@@ -12,8 +12,7 @@
         $NODE_TYPE
         $AXIS_NAME
         %AXES
-        $LITERAL
-        %CACHE/;
+        $LITERAL/;
 
 use Carp qw(croak);
 use XML::XPath::XMLParser;
@@ -115,9 +114,11 @@
 sub parse {
     my $self = shift;
     my $path = shift;
-    if ($CACHE{$path}) {
-        return $CACHE{$path};
+
+    if ($self->{cache}->{$path}) {
+        return $self->{cache}->{$path};
     }
+
     my $tokens = $self->tokenize($path);
 
     $self->{_tokpos} = 0;
@@ -128,7 +129,7 @@
         die "Parse of expression $path failed - junk after end of expression: 
$tokens->[$self->{_tokpos}]";
     }
 
-    $CACHE{$path} = $tree;
+    $self->{cache}->{$path} = $tree;
 
     debug("PARSED Expr to:\n", $tree->as_string, "\n") if $XML::XPath::Debug;
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/XML-XPath-1.37/lib/XML/XPath/PerlSAX.pm 
new/XML-XPath-1.38/lib/XML/XPath/PerlSAX.pm
--- old/XML-XPath-1.37/lib/XML/XPath/PerlSAX.pm 2016-06-02 11:34:53.000000000 
+0200
+++ new/XML-XPath-1.38/lib/XML/XPath/PerlSAX.pm 2016-10-29 20:54:49.000000000 
+0200
@@ -1,6 +1,6 @@
 package XML::XPath::PerlSAX;
 
-$VERSION = '1.37';
+$VERSION = '1.38';
 
 use XML::XPath::Node qw(:node_keys);
 use XML::XPath::XMLParser;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/XML-XPath-1.37/lib/XML/XPath/Root.pm 
new/XML-XPath-1.38/lib/XML/XPath/Root.pm
--- old/XML-XPath-1.37/lib/XML/XPath/Root.pm    2016-06-02 11:35:05.000000000 
+0200
+++ new/XML-XPath-1.38/lib/XML/XPath/Root.pm    2016-10-29 20:54:58.000000000 
+0200
@@ -1,6 +1,6 @@
 package XML::XPath::Root;
 
-$VERSION = '1.37';
+$VERSION = '1.38';
 
 use strict; use warnings;
 use XML::XPath::XMLParser;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/XML-XPath-1.37/lib/XML/XPath/Step.pm 
new/XML-XPath-1.38/lib/XML/XPath/Step.pm
--- old/XML-XPath-1.37/lib/XML/XPath/Step.pm    2016-06-02 11:35:14.000000000 
+0200
+++ new/XML-XPath-1.38/lib/XML/XPath/Step.pm    2016-10-29 20:55:11.000000000 
+0200
@@ -1,6 +1,6 @@
 package XML::XPath::Step;
 
-$VERSION = '1.37';
+$VERSION = '1.38';
 
 use XML::XPath::Parser;
 use XML::XPath::Node;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/XML-XPath-1.37/lib/XML/XPath/Variable.pm 
new/XML-XPath-1.38/lib/XML/XPath/Variable.pm
--- old/XML-XPath-1.37/lib/XML/XPath/Variable.pm        2016-06-02 
11:35:23.000000000 +0200
+++ new/XML-XPath-1.38/lib/XML/XPath/Variable.pm        2016-10-29 
20:55:20.000000000 +0200
@@ -1,6 +1,6 @@
 package XML::XPath::Variable;
 
-$VERSION = '1.37';
+$VERSION = '1.38';
 
 use strict; use warnings;
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/XML-XPath-1.37/lib/XML/XPath/XMLParser.pm 
new/XML-XPath-1.38/lib/XML/XPath/XMLParser.pm
--- old/XML-XPath-1.37/lib/XML/XPath/XMLParser.pm       2016-06-02 
11:35:31.000000000 +0200
+++ new/XML-XPath-1.38/lib/XML/XPath/XMLParser.pm       2016-10-29 
20:55:31.000000000 +0200
@@ -1,6 +1,6 @@
 package XML::XPath::XMLParser;
 
-$VERSION = '1.37';
+$VERSION = '1.38';
 
 use strict; use warnings;
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/XML-XPath-1.37/lib/XML/XPath.pm 
new/XML-XPath-1.38/lib/XML/XPath.pm
--- old/XML-XPath-1.37/lib/XML/XPath.pm 2016-06-02 11:29:22.000000000 +0200
+++ new/XML-XPath-1.38/lib/XML/XPath.pm 2016-10-29 20:47:47.000000000 +0200
@@ -6,14 +6,14 @@
 
 =head1 VERSION
 
-Version 1.37
+Version 1.38
 
 =cut
 
 use strict; use warnings;
 use vars qw($VERSION $AUTOLOAD $revision);
 
-$VERSION = '1.37';
+$VERSION = '1.38';
 $XML::XPath::Namespaces = 1;
 $XML::XPath::ParseParamEnt = 1;
 $XML::XPath::Debug = 0;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/XML-XPath-1.37/t/50xmlxpathparsercache.t 
new/XML-XPath-1.38/t/50xmlxpathparsercache.t
--- old/XML-XPath-1.37/t/50xmlxpathparsercache.t        1970-01-01 
01:00:00.000000000 +0100
+++ new/XML-XPath-1.38/t/50xmlxpathparsercache.t        2016-10-29 
20:31:10.000000000 +0200
@@ -0,0 +1,44 @@
+#!/bin/perl -w
+
+use XML::XPath;
+use Test::More;
+
+# Some example XML. Note that the items are identical except for the
+# namespaces ('namespace1' vs 'namespace2').
+
+my $xml1 = <<'EOXML';
+<ns0:first xmlns:ns0="namespace0">
+           <ns1:second xmlns:ns1="namespace1">
+                       <ns1:second-item>foo</ns1:second-item>
+                        <ns1:second-item>bar</ns1:second-item>
+                        </ns1:second>
+</ns0:first>
+EOXML
+
+my $xml2 = <<'EOXML';
+<ns0:first xmlns:ns0="namespace0">
+           <ns2:second xmlns:ns2="namespace2">
+                       <ns2:second-item>foo</ns2:second-item>
+                        <ns2:second-item>bar</ns2:second-item>
+                        </ns2:second>
+</ns0:first>
+EOXML
+
+# This will work as expected, but will also populate the cache
+# with the parser for $xpath1.
+
+my $xpath1 = XML::XPath->new( xml => $xml1 );
+$xpath1->set_namespace( "a", "namespace0" );
+$xpath1->set_namespace( "b", "namespace1" );
+
+my @nodes = $xpath1->findnodes( "/a:first/b:second/b:second-item" );
+is(scalar(@nodes), 2);
+
+my $xpath2 = XML::XPath->new( xml => $xml2 );
+$xpath2->set_namespace( "a", "namespace0" );
+$xpath2->set_namespace( "b", "namespace2" );
+@nodes = $xpath2->findnodes( "/a:first/b:second/b:second-item" );
+
+is(scalar(@nodes), 2);
+
+done_testing();


Reply via email to