[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl] Re: More General XML Help



Hi, all

I just wanted to add, to follow up to earlier posts, and to round out an
earlier reply to something Greg Aiken asked, that there are 2 approaches
to parsing XML - tree-based (DOM), and event-based.

SAX is _the_ event-based XML parser. The advantages of this approach are
that a tree is NOT built; events (start of element, for example) are
reported through callbacks. Much less memory intensive.

As things stand, if you are going to do SAX, it's Java. There is some good
stuff out there for SAX. I recommend looking at
<http://www.megginson.com/SAX>.

Python is also considerably further advanced with SAX support than is
Perl.

In other words, if you're interested in XML, you have to be more concerned
about the what ("let me do useful stuff with XML"), and choose your
implementations (Perl, Tcl, Python, Javav) accordingly, than try to
shoehorn everything into "let's do all of this with Perl". An advantage of
Java is that things are more likely to work on Macs. :-)

Hope this helps info-wise. Arved




===== Want to unsubscribe from this list?
===== Send mail with body "unsubscribe" to macperl-request@macperl.org