Skip Menu |

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

Report information
The Basics
Id: 5840
Status: resolved
Priority: 0/
Queue: XML-GDOME

People
Owner: Nobody in particular
Requestors: marc.slagle [...] whapps.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.85
Fixed in: (no value)



Subject: Cannot add a text node of the string "0"
We were trying to set a text node with the string value of "0", and nothing would happen. We had to change the following sub in GDOME.pm to allow us to create a text node with the number zero: Was: sub appendText { my ($node, $xmlString) = @_; if ($xmlString) { my $text = $node->getOwnerDocument->createTextNode($xmlString); $node->appendChild($text); } return; } Changed if ($xmlString) { to if ($xmlString ne '') { Thanks
good catch, fix applied to 0.86 which is on its way to CPAN.