in reply to XML-> Classes

You could have a look at this thread which discussed the relation between XML Schema and Perl OO.

For Java, there's JAXB (Java Architecture for XML Binding), a project from SUN.

Just my two cents, -gjb-

Update: I just noticed an article on JAXB published on http://www.xml.com/.