You need to be more explicit about what you are trying to do.
There is no "XSComplexTypeDecl Element". There are XSComplexTypeDecl
objects and <complexType> elements in the schema.
XSComplexTypeDecl objects can't be validated against a schema (or "the
schema"), because there is no schemas for Java objects. There are only
schemas for XML instance documents.
<complexType> elements can be validated against the "Schema for Schemas"
schema, but I don't think that's what you meant.
Then you mentioned XSSimpleTypeDecl. Are you trying to validate an element
(from an instance document) against an XSComplexTypeDecl? Currently, there
is no (standard / public) way of doing that.
Thanks,
Sandy Gao
Software Developer, IBM Canada
(1-905) 413-3255
[EMAIL PROTECTED]
"Sam"
<[EMAIL PROTECTED] To: [EMAIL PROTECTED],
[email protected]
com> cc:
Subject: FW: Re: validation
03/10/2003 07:26
AM
Please respond to
xerces-j-user
_______________________________________________
Join Excite! - http://www.excite.com
The most personalized portal on the Web!
----- Message from "Sam" <[EMAIL PROTECTED]> on Wed, 26 Feb 2003 09:25:08
-0500 (EST) -----
To: [email protected]
Subject: Re: validation
I have a XSComplexTypeDecl Element and I am trying to validate it against
the schema
I found that XSSimpleTypeDecl has a validate method that throws
an Exception if the content of the element is not valid according to the
schema.
--- On Tue 02/25, Justin Lipton < [EMAIL PROTECTED] > wrote:
From: Justin Lipton [mailto: [EMAIL PROTECTED]
To: [email protected]
Date: Wed, 26 Feb 2003 07:42:46 +1100
Subject: Re: validation
It's possible but not completely straightforward - what are you trying
to do?
Sam wrote:
>
>
>
> Is there any way to validate a single complex element?
>
> _______________________________________________
> Join Excite! - http://www.excite.com
> The most personalized portal on the Web!
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_______________________________________________
Join Excite! - http://www.excite.com
The most personalized portal on the Web!
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]