XSDDiagnostic [message #62237] |
Sat, 02 July 2005 01:39 |
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 12:20 |
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 12:20 |
Ed Merks Messages: 33142 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
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.03041 seconds