The other obvious, although heavyweight answer, is to look into the Eclipse EMF and XSD tools, which give a ton of information about schemas, and support auto-generating code to create editors for a schema (although not, perhaps, as simply editable code as your application needs). It's worth skimming the docs tho.
http://eclipse.org/emf/xsd.php - Shane
smime.p7s
Description: S/MIME Cryptographic Signature