Generate code based on a schema, using Sun MSV library. This has its limitations.
Package Specification
Related Documentation