Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » Validating XML doc against its Schema
Validating XML doc against its Schema [message #62682] Tue, 02 August 2005 08: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 13: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 13:33 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 26289
Registered: July 2009
Senior Member
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: Mon Dec 22 12:13:21 GMT 2014

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

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