YAXML Parser; why Perl?

pudge on 2000-04-08T02:01:19

chris writes: I am at the crossroads of balancing my use of Perl (hacking mostly) with my need to port a lot of our services to XML for DB-backed sites as well as for content and data control.

I hate to say it but M$ looks tight and so does Cacoon and its Java.

Aside from the obvious desire I have to "keep it Perl" -- if I am looking for the best tool for the job -- and the job is XML -- is Perl and Apache and Linux really the best solutions? Really?

Maybe this is the wrong place to ask for an objective opinion. But maybe it isn't.


Perl/Apache and XML

ziggy on 2000-04-08T05:47:12

Perl is a great tool for processing XML. Check out some of the modules in the XML:: and W3C:: namespaces.

If you need to increase the runtime performance, you could always install Apache with mod_perl.

Clark Cooper did a performance test of various XML parsers in C/C++, Perl, Java and Python a while back for XML.com, and his XML::Parser gave adequate performance for most purposes. Of course, "adequate performance" is highly subjective; I don't think I'd even to use Perl or Java if I were managing a few TB of XML data; C/C++ is the only practical option at that point.

Don't focus on just the XML part

chip on 2000-04-09T08:57:35

An XML parser does not an application make. As Larry's been known to say: "The complexity has to go *somewhere*".

I think you should stick to Perl until you have something that absolutely doesn't work with it. But maybe that's just me.

Too little information...

Abigail on 2000-04-10T19:20:31

All you say is that you need to port some services to XML. Services that have to do with DB-backed sites. But you don't tell any details of either what needs to be done, what the requirements are, and what you have to work with.

Yet you ask for an objective opinion. IMO, that's a very unrealistic wish.

-- Abigail

Re:Perl/Apache and XML

excalibor on 2000-06-01T14:51:31

I'd say managing Tb of XML data is perfectly feasible in Perl or Java... it depends on how you need to use that data.. Certainly DOM is a no-no... but SAX lets you work on small bits of the grove without reading the whole thing to memory...

I'd just hope there where validating parsers in Perl, but we'll have to wait a bit or use xpat in C, directly...

(or maybe just help the author of XML::Parser... :)