You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Wouter Coene <wo...@irdc.nl> on 2008/06/25 15:43:48 UTC

Re: [PATCH] x2: Disabling automatic schema loading, and more schema validation

According to Boris Kolpackov (boris@codesynthesis.com):
> Wouter Coene <wo...@irdc.nl> writes:
> > The first attached patch (load-schema.patch) adds a new property on
> > SAX2XMLReader and DOMBuilder named XMLUni::fgLoadSchema[1], which controls
> > this behaviour. Is there a possibility of getting this in the next release
> > of Xerces?
> 
> This makes sense and I will commit your patch if you can do the following:
[snip]

See attachment (load-schema2.patch) for a patch against Xerces-C's trunk as
of this afternoon (SVN rev 671547).

I'm a bit uncertain of the changes in TraverseSchema though. Maybe someone
more familiar with that code should take a look at it.

Thanks,
Wouter Coene

Re: [PATCH] x2: Disabling automatic schema loading, and more schema validation

Posted by Boris Kolpackov <bo...@codesynthesis.com>.
Hi Wouter,

Wouter Coene <wo...@irdc.nl> writes:

> See attachment (load-schema2.patch) for a patch against Xerces-C's trunk as
> of this afternoon (SVN rev 671547).

Ok, your patch is in SVN. I've made a couple of changes (I don't think
your modifications to scanners were correct) so can you try it on your
application to make sure everything works as expected?


> I'm a bit uncertain of the changes in TraverseSchema though.

Yes, those changes were incorrect. We don't need to worry about
import/include since these will never be triggered once no-load
is set (that is, you first need to load a top-level schema which
is not possible except with an explicit loadGrammar call in which
case we want import/include to work).

Thanks for the patch!

Boris

-- 
Boris Kolpackov, Code Synthesis Tools   http://codesynthesis.com/~boris/blog
Open source XML data binding for C++:   http://codesynthesis.com/products/xsd
Mobile/embedded validating XML parsing: http://codesynthesis.com/products/xsde

---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org