Skip Menu |
 

This queue is for tickets about the XML-LibXML CPAN distribution.

Report information
The Basics
Id: 8535
Status: resolved
Worked: 1 min
Priority: 0/
Queue: XML-LibXML

People
Owner: Nobody in particular
Requestors: topia [...] clovery.jp
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



Subject: failed ->setNodeName with non-prefix on namespace mode.
Download (untitled) / with headers
text/plain 735b
if processing namespaced node with XML::LibXML-1.58, we can't use ->setNodeName without namespace prefix. such as follows: $ perl -MXML::LibXML <<'END' Show quoted text
> my $parser = XML::LibXML->new; > my $fragment = $parser->parse_balanced_chunk("<foo xmlns='http://www.w3.org/2000/xmlns/' />\n"); > print "before : " . $fragment->serialize; > $fragment->firstChild->setNodeName('bar'); > print "setname w/o ns : " . $fragment->serialize; > $fragment->firstChild->setNodeName('not-found-ns:bar'); > print "setname with ns: " .$fragment->serialize; > END
before : <foo xmlns="http://www.w3.org/2000/xmlns/"/> setname w/o ns : <foo xmlns="http://www.w3.org/2000/xmlns/"/> setname with ns: <bar xmlns="http://www.w3.org/2000/xmlns/"/>


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.