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: 31
Registered: July 2009
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: 33142
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


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:No packages listed when importing from annotated java
Next Topic:[CDO] CDO sources workspace setup under Linux
Goto Forum:
  


Current Time: Fri Apr 26 23:57:40 GMT 2024

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

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

Back to the top