Subject: | Bug in example of documentation about XML::Sablotron::DOM |
Module: XML-Sablotron-0.98
Perl Version: v5.8.5
uname -a: Linux pc206 2.6.9-1.681_FC3 #1 Thu Nov 18 15:10:10 EST 2004 i686 i686 i386 GNU/Linux
Description;
In the synopsis there is a short description about the usage of XML::Sablotron::DOM. You see it here below;
------------------------------
use XML::Sablotron::DOM;
my $situa = new XML::Sablotron::Situation();
my $doc = new XML::Sablotron::DOM::Document(SITUATION => $sit);
my $e = $doc->createElement($situa, "foo");
my $t = $doc->createTextNode($situa, "this is my text");
print $doc->toString();
------------------------------
However, using this example creates a core dump. Looking for a
description about createElement() and createTextNode() later in this document, the arguments are reversed which is the proper way (Doesn't give core dumps :-)). Please will you change this because using a quick example from the synopsis give users always an idea of how things are to be used. Would be bad when they move on trying to use other modules because of
false errors.