Commits

Shlomi Fish committed c817a69
  • Participants
  • Parent commits 55f47d4

Comments (0)

Files changed (3)

 Revision history for Perl extension XML::LibXML
 
+    - Correct some typos reported in 
+        - https://rt.cpan.org/Ticket/Display.html?id=54390
+
 1.74            Thu Jun 23 16:20:42 IDT 2011
     - More work on the t/*.t test scripts.
     - Add scripts/Test.pm-to-Test-More.pl to semi-automatically 
   }
   if (defined($nsURI) and $nsURI eq XML_XMLNS_NS) {
     if ($qname !~ /^xmlns(?::|$)/) {
-      croak("NAMESPACE ERROR: Namespace declartions must have the prefix 'xmlns'");
+      croak("NAMESPACE ERROR: Namespace declarations must have the prefix 'xmlns'");
     }
     $self->setAttribute($qname,$value); # see implementation above
     return;
                     </funcsynopsis>
 
                     <para>Unbinds the Node from its siblings and Parent, but not from the Document it belongs to. If the node is not inserted into the DOM
-                    afterwards it will be lost after the program terminated. From a low level view, the unbound node is stripped from the context it is and
+                    afterwards, it will be lost after the program terminates. From a low level view, the unbound node is stripped from the context it is and
                     inserted into a (hidden) document-fragment.</para>
                 </listitem>
             </varlistentry>
 
                 <listitem>
                     <funcsynopsis>
-                        <funcsynopsisinfo>$childnode = $node-&gt;addChild( $chilnode );</funcsynopsisinfo>
+                        <funcsynopsisinfo>$childnode = $node-&gt;addChild( $childnode );</funcsynopsisinfo>
                     </funcsynopsis>
 
                     <para>As an alternative to appendChild() one can use the addChild() function. This function is a bit faster, because it avoids all DOM
                         <funcsynopsisinfo>@nodes = $node-&gt;findnodes( $xpath_expression );</funcsynopsisinfo>
                     </funcsynopsis>
 
-                    <para><emphasis>findnodes</emphasis> evaluates the xpath expression (XPath 1.0) on the current node and returns the resulting node set as an array. In scalar context returns a <olink targetdoc="XML::LibXML::NodeList">XML::LibXML::NodeList</olink> object.</para>
+                    <para><emphasis>findnodes</emphasis> evaluates the xpath expression (XPath 1.0) on the current node and returns the resulting node set as an array. In scalar context, returns a <olink targetdoc="XML::LibXML::NodeList">XML::LibXML::NodeList</olink> object.</para>
           <para>The xpath expression can be passed either as a string or 
 	  or as a  <olink targetdoc="XML::LibXML::XPathExpression">XML::LibXML::XPathExpression</olink> object.
 	  </para>
                     <para>Because XML::LibXML does not implement namespace declarations and attributes the same way, it is required to test what kind of node is
                     handled while accessing the functions result.</para>
 
-                    <para>If this function is called in array context the attribute nodes are returned as an array. In scalar context the function will return a
+                    <para>If this function is called in array context the attribute nodes are returned as an array. In scalar context, the function will return a
                     <olink targetdoc="XML::LibXML::NamedNodeMap">XML::LibXML::NamedNodeMap</olink> object.</para>
                 </listitem>
             </varlistentry>
           <funcsynopsis><funcsynopsisinfo>@nodes = $xpc-&gt;findnodes($xpath, $context_node )</funcsynopsisinfo></funcsynopsis>
           <funcsynopsis><funcsynopsisinfo>$nodelist = $xpc-&gt;findnodes($xpath, $context_node )</funcsynopsisinfo></funcsynopsis>
             <para>Performs the xpath statement on the current node and
-	      returns the result as an array. In scalar context
+	      returns the result as an array. In scalar context,
 	      returns a <olink targetdoc="XML::LibXML::NodeList">XML::LibXML::NodeList</olink> object. Optionally, a
 	      node may be passed as a second argument to set the
 	      context node for the query.</para>