Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » XML Schema Definition (XSD) » XSDDiagnostic
XSDDiagnostic [message #62237] Sat, 02 July 2005 01:39 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
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/
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 Apr 19 21:50:18 GMT 2024

Powered by FUDForum. Page generated in 0.04579 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top