Subject: | PATCH: Document create_libxml() |
Date: | Wed, 2 Jun 2010 15:15:23 -0700 |
To: | bug-xml-rss-libxml [...] rt.cpan.org |
From: | David E. Wheeler <dwheeler [...] cpan.org> |
This patch documents create_libxml(). I've created a subclass to override this one method so that I can perform my own configuration of the parser. NOte that libxml_opts (undocumented) does not work for some options, as they don't have corresponding accessors.
Best,
David
--- a/lib/XML/RSS/LibXML.pm
+++ b/lib/XML/RSS/LibXML.pm
@@ -464,6 +464,11 @@ Instead of
In scalar context, returns the reference to the list of items.
+=head2 create_libxml()
+
+Creates, configures, and returns an XML::LibXML object. Used by C<parse()>
+to instantiate the parser used to parse the feed.
+
=head1 PERFORMANCE
Here's a simple benchmark using benchmark.pl in this distribution,