From: Edward Faulkner Date: 2006-02-24T03:07:44+09:00 Subject: Re: Creating Ruby Classes from XSD? --jRHKVT23PllUwdXP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sometimes you don't control the source of the information. If someone is sending you XML documents and provides you with a schema, hard-coding your own class to match the schema is just unnecessary repetition. In the spirit of DRY, it's better to generate your class on the fly. This allows you to instantly adapt to future schema changes, too. I have written such an application (but not in Ruby), and it's much nicer than what it replaced. In Ruby it would be really easy to do. REXML + metaprogramming and you're done. -Ed --jRHKVT23PllUwdXP Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFD/fmDnhUz11p9MSARAsFLAJ9/fsuu990gqO4KvgyEdOsgGZN6uwCgzXgH uckURZ+xLAFVJfJgD/s4Txs= =7CFi -----END PGP SIGNATURE----- --jRHKVT23PllUwdXP--