[tpm] Good examples?

arocker at Vex.Net arocker at Vex.Net
Fri Nov 8 06:30:15 PST 2013


Does anyone know of a good explanation/example of how to use XML::SAX
anywhere online?

I've looked at the CPAN documentation, and other usual sources, but they
have some ambiguity about what are standard method names, features, &c.,
and what are simply examples of user-written resources.

The problem that started this train of thought is absurdly simple;
extracting 3 fields per record from a STDIN stream of records containing 5
or 6 embedded in XML tags.

 A simple program, basically 3 regexes and a print, does the job, but
attracted a storm of online criticism about parsing XML with regexes.
I've been trying to write the equivalent using XML::SAX, but seem to be
missing something. (For one thing, all the examples assume reading from a
named file, not STDIN.)



More information about the toronto-pm mailing list