Michael,

 

Thanks.  This works great.  However, some (all?) other areas in the schema
aren't laxly validated.  For example, a lax attribute on an xs:element.  Any
suggestions here?

 

  _____  

From: Michael Glavassevich [mailto:mrgla...@ca.ibm.com] 
Sent: Monday, May 04, 2009 8:46 PM
To: j-users@xerces.apache.org
Subject: Re: appinfo validation

 

Hi Windy,

If you want annotations to be laxly validated when the schema is loaded you
could try setting the "validate-annotations" feature [1] to true. Xerces
will use whatever declarations that are available to validate their content.

Thanks.

[1] http://xerces.apache.org/xerces2-j/features.html#validate-annotations

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: mrgla...@ca.ibm.com
E-mail: mrgla...@apache.org

"Windchime" <w...@zahuta.com> wrote on 05/04/2009 09:30:12 PM:

> I am building a grammar pool and validating xml instances.  All of 
> this works well except that the schema 'appinfo' elements are not 
> getting laxly validated (that is, they don't seem to be validated at
> all).  I can make this validate correctly by adding the XML Schema 
> for Schema into the grammar pool, but this just seems wrong (and 
> takes up a noticeable chunk of CPU)-is there a better way?
>  
> Thanks,
>  
> Windy

Reply via email to