Trans
8/9/2008 11:53:00 PM
On Aug 9, 10:19=A0am, "Bill Walton" <bill.wal...@charter.net> wrote:
> Background:
>
> I'm working on a library to read XML files and convert their contents to =
a set of Ruby objects. =A0The XML files conform to an ASTM standard and the=
re's an XSD. =A0The Java guys are using JAXB to generate their classes from=
the XSD. =A0I'm not aware of an equivalent to JAXB for Ruby and so am goin=
g at the task manually.
>
> Question:
>
> Is there a standard / recommended approach, documented somewhere, that I =
could use to guide my decisions re: translating the XML structure into a Ru=
by class hierarchy?
I worked on something like this for awhile (Blow/XDK), but it felt so
heavy and un-ruby that I let it go. Using more flexible tools like
XML::Simple, Hpricot, Builder, and Cherry/rQuery are so much nicer.
T.