Skip Menu | will be shut down on March 1st, 2021.

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

Owner: Nobody in particular
Requestors: topia [...]

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='' />\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=""/> setname w/o ns : <foo xmlns=""/> setname with ns: <bar xmlns=""/>

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

Please report any issues with to