Skip Menu |

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

Report information
The Basics
Id: 9685
Status: new
Priority: 0/
Queue: XML-Sablotron

People
Owner: Nobody in particular
Requestors: m.timmerman [...] nih.knaw.nl
Cc:
AdminCc:

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



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.