From: Austin Ziegler Date: 2003-10-04T04:09:57+09:00 Subject: Re: xml + ruby On Sat, 4 Oct 2003 00:17:01 +0900, Eric Hodel wrote: > Austin Ziegler (austin@halostatue.ca) wrote: >> There's further confusion if you had: >> 123 >> How would I refer to each individual item: list.item[0] through >> list.item[2]? If the tag also allowed for CDATA values, there's >> nothing in the XML spec that would prevent: >> cdata1cdata2cdata > Ruby <--> XML seems to be a poor fit, it seems XML will quickly become > too verbose with all the exceptions and having to resort to XPath (I've > seen several posts that say "oh, we'll have to use XPath for that", and > that wouldn't make me very happy). Ruby <--> RDF would be a better fit, > especially if used as a serialization format. I'm not sure I understand what you're saying, especially as RDF is an XML format. I've had good results with the use of REXML for XML processing. I don't do a lot with XML, but I can't fault the API for that. REXML can, of course, be used in either "DOM" or stream/SAX mode, and if the DOM mode is too verbose for the purposes of processing, then the SAX mode can help -- I think. -austin -- austin ziegler * austin@halostatue.ca * Toronto, ON, Canada software designer * pragmatic programmer * 2003.10.03 * 15.07.29