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