Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » XSDDiagnostic
XSDDiagnostic [message #62237] Fri, 01 July 2005 21:39 Go to next message
Eclipse User
Originally posted by: anand.mindreef.com

I'm trying to process the Diagnostics obtained by running validate().

My question is: what's the relationship between what's returned by
diagnostic.getNode() and diagnostic.getComponents() (of which the first
element is getPrimaryComponent())?

Thanks!
Anand Thakker
Mindreef, Inc
http://www.mindreef.com
Web Services Diagnostics
Re: XSDDiagnostic [message #62292 is a reply to message #62237] Tue, 05 July 2005 08:20 Go to previous message
Eclipse User
Originally posted by: merks.ca.ibm.com

Anand,

Something like a complex type can be composed of a number of nested
elements and there could be problems like bad attributes on any of those
elements. The getNode method should return exactly the right node,
e.g., the restriction, or the complexContent. The getComponents returns
all the components involved in the error. For example, if you have a
length facet, there shouldn't be a minLength or maxLength facet, so if
both are present along with the length, they will both be included in
the components.


Anand Thakker wrote:

>
> I'm trying to process the Diagnostics obtained by running validate().
>
> My question is: what's the relationship between what's returned by
> diagnostic.getNode() and diagnostic.getComponents() (of which the
> first element is getPrimaryComponent())?
>
> Thanks!
> Anand Thakker
> Mindreef, Inc
> http://www.mindreef.com
> Web Services Diagnostics
Re: XSDDiagnostic [message #595955 is a reply to message #62237] Tue, 05 July 2005 08:20 Go to previous message
Ed Merks is currently offline Ed Merks
Messages: 25918
Registered: July 2009
Senior Member
Anand,

Something like a complex type can be composed of a number of nested
elements and there could be problems like bad attributes on any of those
elements. The getNode method should return exactly the right node,
e.g., the restriction, or the complexContent. The getComponents returns
all the components involved in the error. For example, if you have a
length facet, there shouldn't be a minLength or maxLength facet, so if
both are present along with the length, they will both be included in
the components.


Anand Thakker wrote:

>
> I'm trying to process the Diagnostics obtained by running validate().
>
> My question is: what's the relationship between what's returned by
> diagnostic.getNode() and diagnostic.getComponents() (of which the
> first element is getPrimaryComponent())?
>
> Thanks!
> Anand Thakker
> Mindreef, Inc
> http://www.mindreef.com
> Web Services Diagnostics
Previous Topic:How to get default and fixed value of an XSDElementDeclaration?
Next Topic:How to get default and fixed value of an XSDElementDeclaration?
Goto Forum:
  


Current Time: Fri Jul 25 03:07:39 EDT 2014

Powered by FUDForum. Page generated in 0.01578 seconds