> Could I use the "findnodes" subroutine you're using 
> above as a regular expression?

The expressions in XML::LibXML and XML::XPath are XPath expressions. They
are very powerful in that you can generally craft an XPath expression to get
exactly what you want, making most extractions a one-liner. You can do
things like contains() and starts-with(), etc, and XPath 2.0 (currently a
W3C working draft) will have regular expression support.

Personally, I think XPath is a great way to parse XML, because they are
simply strings. These can be externalized, so if the XML changes, you don't
have to change your parsing code, just the Xpath strings.

- Mark.


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to