users@jaxb.java.net

Re: noob question

From: Aleksei Valikov <valikov_at_gmx.net>
Date: Fri, 10 Oct 2008 07:41:14 +0200

Hi.

> Actually, i found the documentation. i see how to use it, now. However, i
> still think that it would be more consistent and provide a valuable quality
> assurance check if you could run jaxb on the schema schema and verify that
> the result is essentially iso to jaxb itself.

To give advice on whether certain tool is applicable or not if would
be nice to know, what the goal is, and what the particular tasks are.
What do you want to do with the schemas after you've parsed them?

My hint on using XSOM is just some general advice from my practice.
The thing is, if you need some a bit more complex processing of
schemas (like, found out what the individual values of enumerations
are or what is the structure of some constraint), you intelligent
objects and intelligent structures. What you could generate with JAXB
are quite plain schema-derived classes, they won't provide you with
things like visitors or well-aligned inheritance.

So it would generally make more sense to use schema-specific library
to process schemas rather than plainly generate schema-derived
classes. XSOM is just an example of such a library.

Bye.
/lexi