1. Shlomi Fish
  2. perl-XML-LibXML


pa...@9ae0c189-cd1f-4510-a509-f4891f5cf20d  committed 6a48531

fixed typo in encoding example, noted by C.J. Adams-Collier

  • Participants
  • Parent commits e4772ee
  • Branches default

Comments (0)

Files changed (1)

File docs/libxml.dbk

View file
  • Ignore whitespace
 	      specified by the <literal>&lt;?xml version="1.0" encoding="..."?&gt;</literal>
 	      declaration. Here is an example to follow:
 	      <programlisting>use XML::LibXML;
+# load
 open my $fh, "file.xml";
 binmode $fh; # drop all PerlIO layers possibly created by a <literal>use open</literal> pragma
 $doc = XML::LibXML-&gt;load_xml(IO => $fh);
+# save
 open my $out, "out.xml";
-binmode $fh; # as above
+binmode $out; # as above
 # or
-print $fh $doc-&gt;toString();</programlisting>
+print $out $doc-&gt;toString();</programlisting>