in reply to Re^2: Perl has plenty of XML parsers, but is there an XML printer?
in thread Perl has plenty of XML parsers, but is there an XML printer?

Getting access to a db like SQLite or MySQL or PostgreSQL isn't that hard. But if you really want to compare flat files and XML files in a database-like manner without a database, then DBD::AnyData sounds like what you want. It handles many kinds of flat files (CSV, Fixed-width, ini, etc.) and uses XML::Twig to both read and write XML files using the standard DBI interface.
  • Comment on Re^3: Perl has plenty of XML parsers, but is there an XML printer?

Replies are listed 'Best First'.
Re^4: Perl has plenty of XML parsers, but is there an XML printer?
by yaneurabeya (Novice) on Jul 20, 2007 at 00:14 UTC

    I completely forgot about SQLite, and it's in my work's Perl dist!

    Nevermind XML, I'm going to use that :)..

      perl -MDBD::SQLite -e "print $DBD::SQLite::VERSION" will tell you if it's installed (note: DBD::, not DBI::). It's also dead simple to install if not there. You might want to check into DBD::AnyData regardless, since it makes it easy to get XML into and out of SQLite.

        I wish I could work with DBD::AnyData, but it's not installed in the local Perl dist.

        I don't have root access to the machine, and my dev group wants to avoid supporting as many things cross-site as possible (so local CPAN installs are out of the question).