Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [xsd-dev] RE: Detecting errors in XSD Parsing

Hayden,

The validate methods have always been there so you should not have to
upgrade but I am sure it is a good idea to upgrade because you will get
some fixes that you may need.

The pre-reqs are listed at the top of the download page
http://dev.eclipse.org/viewcvs/indextech.cgi/~checkout~/xsd-home/downloads/dl.html



Regards
Dave Spriet


WebSphere MQ Integration Tooling,
email: spriet@xxxxxxxxxx


|---------+----------------------------->
|         |           "Hayden Marchant" |
|         |           <Hayden.Marchant@u|
|         |           nicorn.com>       |
|         |           Sent by:          |
|         |           xsd-dev-admin@ecli|
|         |           pse.org           |
|         |                             |
|         |                             |
|         |           03/11/2003 11:03  |
|         |           AM                |
|         |           Please respond to |
|         |           xsd-dev           |
|         |                             |
|---------+----------------------------->
  >---------------------------------------------------------------------------------------------------------------------------------------------|
  |                                                                                                                                             |
  |       To:       <xsd-dev@xxxxxxxxxxx>                                                                                                       |
  |       cc:                                                                                                                                   |
  |       Subject:  [xsd-dev] RE: Detecting errors in XSD Parsing                                                                               |
  |                                                                                                                                             |
  |                                                                                                                                             |
  >---------------------------------------------------------------------------------------------------------------------------------------------|



will this work on Eclipse XSD 1.0.1? or do I have to install XSD 1.0.2?

Are there any requirements to use more updated jars of eclipse with this
new 1.0.2 release or will it work with the old jars (ecore.jar, common.jar
etc...)

Thanks

-----Original Message-----
From: Ed Merks [mailto:merks@xxxxxxxxxx]
Sent: Tuesday, March 11, 2003 2:22 PM
To: Hayden Marchant
Subject: Re: Detecting errors in XSD Parsing


Hayden,

If you call  XSDConcreteComponent.validate on your XSDSchema, it will
validate
the whole schema.  For this particular case, it will produce a diagnostic
indicating that gfgfd is not permitted.


Hayden Marchant wrote:

> 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:sequence>
>                         <xsd:gfgfd name="This" type="xsd:string"/>
>                         <xsd:element name="that" type="xsd:string"/>
>                 </xsd:sequence>
>         </xsd:complexType>
>
> 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?
>
> Thanks,
>
> Hayden Marchant

_______________________________________________
xsd-dev mailing list
xsd-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/xsd-dev





Back to the top