Validating XML doc against its Schema [message #62682] |
Tue, 02 August 2005 04:39  |
Eclipse User |
|
|
|
Originally posted by: smahon.ittalks.co.uk
Hi,
I want to validate an XML document against its Schema and was wondering
what was the best way to go about this. Would it be to model the document
using EMF, to convert the document into Java Objects using JAXB, simply to
use DOM or is there any other methods.
Any suggestions are appreciated.
Shane
|
|
|
Re: Validating XML doc against its Schema [message #62706 is a reply to message #62682] |
Tue, 02 August 2005 09:33  |
Eclipse User |
|
|
|
Originally posted by: merks.ca.ibm.com
Shane,
If you simply want validation of a document against a schema, using JAXP
seems like a good way to go. Converting to Ecore and using EMF's
validation support makes sense if you will be using the generated model
code for other purposes too, but seems like a bit overkill if validation
is the only goal.
shane wrote:
> Hi,
> I want to validate an XML document against its Schema and was
> wondering what was the best way to go about this. Would it be to
> model the document using EMF, to convert the document into Java
> Objects using JAXB, simply to use DOM or is there any other methods.
>
> Any suggestions are appreciated.
>
> Shane
>
|
|
|
Re: Validating XML doc against its Schema [message #596181 is a reply to message #62682] |
Tue, 02 August 2005 09:33  |
Eclipse User |
|
|
|
Shane,
If you simply want validation of a document against a schema, using JAXP
seems like a good way to go. Converting to Ecore and using EMF's
validation support makes sense if you will be using the generated model
code for other purposes too, but seems like a bit overkill if validation
is the only goal.
shane wrote:
> Hi,
> I want to validate an XML document against its Schema and was
> wondering what was the best way to go about this. Would it be to
> model the document using EMF, to convert the document into Java
> Objects using JAXB, simply to use DOM or is there any other methods.
>
> Any suggestions are appreciated.
>
> Shane
>
|
|
|
Powered by
FUDForum. Page generated in 0.03543 seconds