Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » Detecting errors in XSD Parsing
Detecting errors in XSD Parsing [message #566184] Tue, 11 March 2003 06:31
Hayden Marchant is currently offline Hayden Marchant
Messages: 90
Registered: July 2009
I need to be able to detect bad xsd's during parsing. For example, if
there is an XSD with a snippet like this:

<xsd:complexType name="stim">
<xsd:gfgfd name="This" type="xsd:string"/>
<xsd:element name="that" type="xsd:string"/>

I would like the parser to notify me somehow that the first thing in the
sequence is not a legal xsd construct. Instead it continues parsing with
complex type and says it has just one element. I tried calling
XSDSchema.getDiagnostics() but got an empty list. Does anyone know under
what conditions getDiagnostics returns errors?

Obviously there are a lot more things that can go wrong with parsing - can
anyone point me in the right direction?


Hayden Marchant
Previous Topic:new xerces version
Next Topic:Detecting errors in XSD Parsing
Goto Forum:

Current Time: Sat Aug 23 01:42:46 EDT 2014

Powered by FUDForum. Page generated in 0.01539 seconds