Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Distinguishing between XMIException
Distinguishing between XMIException [message #431576] Fri, 17 July 2009 09:26 Go to next message
Ali Akar is currently offline Ali AkarFriend
Messages: 29
Registered: July 2009
Junior Member
Hi,

What's the Criterion for distinguishing between XML well-formedness
problems and XSD validity problems. Since, both type of problems are
reported as XMIException and having a SAXParseException as cause.

For now, I'm looking at the message of the exception "The content of
elements must consist of well-formed character data or markup" but I'm
searching a better/additional criterion.

Thx,
Ali
Re: Distinguishing between XMIException [message #431585 is a reply to message #431576] Fri, 17 July 2009 15:25 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 30692
Registered: July 2009
Senior Member
Ali,

Comments below.

Ali Akar wrote:
> Hi,
>
> What's the Criterion for distinguishing between XML well-formedness
> problems and XSD validity problems. Since, both type of problems are
> reported as XMIException and having a SAXParseException as cause.
Yes we just wrap the exceptions thrown by SAX. But we aren't using an
XSD validating parser (by default) so the problems should all be of a
well formedness nature with there is a SAXP exception as the cause.
>
> For now, I'm looking at the message of the exception "The content of
> elements must consist of well-formed character data or markup" but I'm
> searching a better/additional criterion.
Yes, I'm not sure how well defined the SAX exceptions are, i.e., if
there are subclasses to represent different types of issues...
>
> Thx,
> Ali
Previous Topic:No packages listed when importing from annotated java
Next Topic:[CDO] CDO sources workspace setup under Linux
Goto Forum:
  


Current Time: Sun Dec 15 02:35:09 GMT 2019

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

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

Back to the top