Commits

Anonymous committed 245ab71

Modified Files:
LibXML.pm
+ patch to avoid unneeded warnings in namespace handling
(supplied by Vaclav Barta)

  • Participants
  • Parent commits 20fa515

Comments (0)

Files changed (1)

 sub nodeName {
     my $self = shift;
     my $nsP  = $self->name;
-    return length($nsP) ? "xmlns:$nsP" : "xmlns";
+    return ( defined($nsP) && length($nsP) ) ? "xmlns:$nsP" : "xmlns";
 }
 
 sub getNodeName { my $self = shift; return $self->nodeName; }