Skip to main content



      Home
Home » Archived » XML Schema Definition (XSD) » Validating XML doc against its Schema
Validating XML doc against its Schema [message #62682] Tue, 02 August 2005 04:39 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
>
Previous Topic:Validating XML doc against its Schema
Next Topic:Some Basic Qs
Goto Forum:
  


Current Time: Sun May 11 04:19:37 EDT 2025

Powered by FUDForum. Page generated in 0.03458 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top