[EMAIL PROTECTED] wrote:
> 
> I tried your files with Xerces-2, and didn't see the behavior you
> described. Then I tried it on Xerces 1.4.4, and did see the error.
> Obviously it's a bug in Xerces-1.
> 
> Is it possible for you to upgrade to Xerces-2? It's supposed to have better
> schema support than Xerces-1. It's not likely that bugs will be fixed in
> Xerces-1 code base, because most committers are working on Xerces-2. Of
> course, if you find a fix to the problem and post a patch to the list, I'd
> be more than happy to commit it.
> 
> And if you do want to upgrade to Xerces-2, you need to add one more line to
> your program:
> 
>       dbf.setAttribute("http://apache.org/xml/features/validation/schema";,
> Boolean.TRUE);
> 
> The reason is that the default of schema-validation is on in Xerces-1, but
> off in Xerces-2.

Alternatively, in later versions of Xerces2, one could use the proposed
JAXP 1.2 spec to do this.  This would involve setting a "schemaLanguage"
DBF attribute.

-Edwin

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to