Skip Menu |

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

Report information
The Basics
Id: 59814
Status: resolved
Priority: 0/
Queue: XML-LibXML

People
Owner: Nobody in particular
Requestors: ambrus [...] math.bme.hu
Cc:
AdminCc:

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



Subject: Typo in introductory example in docs
Date: Thu, 29 Jul 2010 13:33:10 +0200
To: bug-XML-LibXML [...] rt.cpan.org
From: Zsbán Ambrus <ambrus [...] math.bme.hu>
Dear maintainers of XML::LibXML, It seems that there's a typo in the code example in the XML::LibXML documentation under the heading "ENCODINGS SUPPORT IN XML::LIBXML". Namely, a line says $doc->toFh($fh); whereas the method is actually called toFH, not toFh. Please correct the example to valid code. I'm using XML::LibXML version 1.70 installed from the cpan tarball, libxml version 20632, perl v5.12.1 vanilla, on an amd64 linux debian lenny system. Thanks for your attention, Ambrus
From: daniel.frett [...] ccci.org
attached a patch that fixes the documentation typo On Thu Jul 29 07:33:44 2010, ambrus@math.bme.hu wrote: Show quoted text
> Dear maintainers of XML::LibXML, > > It seems that there's a typo in the code example in the XML::LibXML > documentation under the heading "ENCODINGS SUPPORT IN XML::LIBXML". > Namely, a line says > > $doc->toFh($fh); > > whereas the method is actually called toFH, not toFh. > > Please correct the example to valid code. > > I'm using XML::LibXML version 1.70 installed from the cpan tarball, > libxml version 20632, perl v5.12.1 vanilla, on an amd64 linux debian > lenny system. > > Thanks for your attention, > > Ambrus
Subject: RT59814.patch
diff --git a/docs/libxml.dbk b/docs/libxml.dbk index f77d7dc..d3aff02 100644 --- a/docs/libxml.dbk +++ b/docs/libxml.dbk @@ -602,7 +602,7 @@ $doc = XML::LibXML-&gt;load_xml(IO => $fh); # save open my $out, "out.xml"; binmode $out; # as above -$doc-&gt;toFh($out); +$doc-&gt;toFH($out); # or print $out $doc-&gt;toString();</programlisting> </para>
Fixed on CPAN. Thanks for the report, and thanks Daniel for the patch.