Shlomi Fish committed 9b68495

Add more.

Comments (0)

Files changed (1)


 #include '../template.wml'
+#include "xhtml/1.x/std/toc.wml"
 <latemp_subject "Perl for XML Processing" />
+This page will cover how to properly process XML using Perl and
+various recommended modules from CPAN (= Comprehensive Perl Archive Network).
+<h2* id="toc">Table of Contents</h2*>
+<toc />
 <h2 id="technologies">Technologies of Interest</h2>
 <h3 id="XML-LibXML"><cpan_self_dist d="XML-LibXML" /></h3>
 with the DOM and the XML-LibXML API before using this library.
+<h3 id="xpath">XPath</h3>
+<a href="">XPath</a> is an
+XML-related technology (but not notated in XML) that allows one
+to locate nodes in XML files using a compact syntax. One can use it using
+<tt>XML::LibXML</tt>, and should avoid using the old, slow, and largely
+unmaintained <tt>XML::XPath</tt> CPAN distribution.
+Another useful module is <cpan_self_dist d="HTML-Selector-XPath" />
+which allows one to convert <strong>CSS-style selectors</strong> to XPath and
+provide functionality similar to that offered by such JavaScript libraries
+such as jQuery. So you can, for example, write
+<code>selector_to_xpath('ul.myclass a')</code> to find all <tt>a</tt> elements
+inside a <tt>ul</tt> element with a CSS class of <tt>myclass</tt>.
 <h2 id="web-pages">Web Pages about Perl and XML</h2>
 <h3 id="perl-xml-project"><a href="">The Perl XML Project