in reply to XML parsing - huge file strategy?

If I was in your shoes, I'd use YAML. It's moderately readable by humans, taint-safe, and way way simpler than XML.

This is something of a tangent, but I don't think I've ever seen a situation in which XML didn't suck.

OK, Actually, I'd query the MySQL server...

Replies are listed 'Best First'.
Re^2: XML parsing - huge file strategy?
by samtregar (Abbot) on Jul 18, 2008 at 18:48 UTC
    Does Perl have a streaming parser for YAML? If not this is a non-starter since your parser would load the entire file into memory and crash long before it finished.

    I don't see YAML or XML bringing much of value here - an SQL table is by definition a flat set of same-sized records. It's perfect for TSV/CSV and MySQL has built-in support for it.

    -sam

      Yeah, I agree, querying the MySQL server is The Way to Go.

      Mostly I have an irrational hatred for XML.