From: Adam Keys Date: 2006-08-06T00:02:36+09:00 Subject: Re: magic/xml library for easy XML processing On Aug 4, 2006, at 8:17 PM, Tomasz Wegrzanowski wrote: > Some of you may be interested in a new library for XML processing. > It is inspired by languages designed just for XML-processing like > CDuce > and to some extend by Perl's XML::Twig. Basically easy things > should be easy, and everything should be integrated very tightly > with Ruby. > This looks really promising. You almost lost me though. I suspected from the mention of XML::Twig that magic/xml might handle Really Huge XML (TM) more gracefully than our current options and it looks like it does. Point being, you should mention it handles Really Huge XML gracefully up front, as that is something I find myself inflicting ugly hacks upon myself to achieve today. > And I guess I should also add XPath, port to a faster XML parser > (currently > using REXML to get a stream of XML parse events), and add > some interface for accessing fancy XML features like > processing instructions to get it out of alpha :-) > Yes, please, XPath! It could be I'm the only one who likes XPath, but I find it a great way to pluck data out of XML. This library looks really good. I'm going to keep it in mind for all my "some idiot sent me an 1 GB XML file that is a bunch of smaller files concatenated together" needs. -- ~akk http://therealadam.com