validation 2003-03-10 - By sandygao@(protected)
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 sandygao@(protected)
"Sam" <sam101_1@(protected) To: xerces-j-user@(protected) .apache.org, xerces-j-dev@(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" <sam101_1@(protected)> on Wed, 26 Feb 2003 09:25:08 -0500 (EST) ----- To: xerces-j-dev@(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 < justin@(protected) > wrote: From: Justin Lipton [mailto: justin@(protected)] To: xerces-j-dev@(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: xerces-j-dev-unsubscribe@(protected) > For additional commands, e-mail: xerces-j-dev-help@(protected) > > >
--------------------------------------------------------------------- To unsubscribe, e-mail: xerces-j-dev-unsubscribe@(protected) For additional commands, e-mail: xerces-j-dev-help@(protected)
_______________________________________________ Join Excite! - http://www.excite.com The most personalized portal on the Web!
--------------------------------------------------------------------- To unsubscribe, e-mail: xerces-j-dev-unsubscribe@(protected) For additional commands, e-mail: xerces-j-dev-help@(protected)
--------------------------------------------------------------------- To unsubscribe, e-mail: xerces-j-user-unsubscribe@(protected) For additional commands, e-mail: xerces-j-user-help@(protected)
--------------------------------------------------------------------- To unsubscribe, e-mail: xerces-j-user-unsubscribe@(protected) For additional commands, e-mail: xerces-j-user-help@(protected)
|
|