|Re: Distinguishing between XMIException [message #431585 is a reply to message #431576]
||Fri, 17 July 2009 15:25
| Ed Merks
Registered: July 2009
Ali Akar wrote:
> 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...
Professional Support: https://www.macromodeling.com/
Powered by FUDForum
. Page generated in 0.01976 seconds