I think that many tools are available, schematron is yet another one, making it easier to write schemas, but writing
a schema is not rocket science, plus many IDE tools such as XML Spy help you writing and validating a schema.
I am agnostic from any tools and spec, I am just sharing my experience using Schemas for the last 1.5 years in conjunction with Java, and so far I have not seen any issues using schemas in a web environment.
Olivier
Eiji Yoshida wrote:
030b01c1e5ce$6a904cf0$6181080a@hyakushiki">If you want XML-Java binding tool, I recommend using Relaxer (http://www.relaxer.org)
that generates java classes from RELAX document.
RELAX, one of XML schemata, has been approved by the ISO.
http://www.xml.gr.jp/relax/
----- Original Message -----
From: "Lasker, Kory" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 17, 2002 5:33 AM
Subject: RE: XML to XSDIf you don't care much for performance, I'd like to add that Castor has the
ability to marshal/unmarsal without an XSD as well. You can use their own
mapping facility. Here's some more info:
http://www.castor.org/xml-framework.html#Run-Time-Descriptors
Kory
-----Original Message-----
From: obrand [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 16, 2002 2:11 PM
To: [EMAIL PROTECTED]
Subject: Re: XML to XSD
I would recommend using Castor from Exolab to deal with XML and Schemas.
JAXB is too complex since it tries to redefine what Schema already defines
(constraints, type, ....). Using Castor, you will be able to generate the
java framework starti ng from one file: your schema !
A tool creating Schema from XML is nearly impossible due to the semantic
information which does not show in an XML document. For this reason using
DTD is useless, and JAXB once again is too complex.
I would recommend XML Spy which helps you creating a Schema from an existing
XML, then you can tweak it to refine your rules.
Once finished, you just take the schema, call sourceGen from the exolab
distribution and.... Voila !
Just to add to the polemic, it seems that SUN's future on JAXB is unclear. I
have heard from other SUN engineers that the project might be
re-architected. Anyway SUN's direction for J2EE 1.4 is to move to Schemas,
allowing standard checking from the parser and be able for some vendors to
extend some configurations (I am sure that iPlanet is going to like
it......).
Olivier
