Commits

Daniel Frett committed e5fccab

added missing method names to documentation

Comments (0)

Files changed (1)

     <sect1>
       <title>Synopsis</title>
       <programlisting>use XML::LibXML::Reader;</programlisting>
-      <programlisting>my $reader = XML::LibXML::Reader-&gt;(location =&gt; "file.xml")
+      <programlisting>my $reader = XML::LibXML::Reader-&gt;new(location =&gt; "file.xml")
        or die "cannot read file.xml\n";
 while ($reader-&gt;read) {
   processNode($reader);
 </programlisting>
       <para>or</para>
       <programlisting>
-  my $reader = XML::LibXML::Reader-&gt;(location =&gt; "file.xml")
+  my $reader = XML::LibXML::Reader-&gt;new(location =&gt; "file.xml")
        or die "cannot read file.xml\n";
   $reader-&gt;preservePattern('//table/tr');
   $reader-&gt;finish;
     <sect1>
       <title>Synopsis</title>
       <programlisting>use XML::LibXML;
-my $compiled_xpath = XML::LibXML::XPathExpression-&gt;('//foo[@bar="baz"][position()&lt;4]');
+my $compiled_xpath = XML::LibXML::XPathExpression-&gt;new('//foo[@bar="baz"][position()&lt;4]');
 
 # interface from XML::LibXML::Node 
 
     <sect1>
       <title>Synopsis</title>
       <programlisting>use XML::LibXML;
-my $compiled_re = XML::LibXML::RegExp-&gt;('[0-9]{5}(-[0-9]{4})?');
+my $compiled_re = XML::LibXML::RegExp-&gt;new('[0-9]{5}(-[0-9]{4})?');
 if ($compiled_re->isDeterministic()) { ... }
 if ($compiled_re->matches($string)) { ... }
 </programlisting>