Austin Ziegler
10/3/2003 7:10:00 PM
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:
>> <list><item>1</item><item>2</item><item>3</item></list>
>> How would I refer to each individual item: list.item[0] through
>> list.item[2]? If the <list> tag also allowed for CDATA values, there's
>> nothing in the XML spec that would prevent:
>> <list>cdata<item>1</item>cdata<item>2</item>cdata</list>
> 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