Hi Wouter,

Wouter Coene <[EMAIL PROTECTED]> 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:

- Make it against 3.0.0 since that will be the next release. Note that
  in 3.0.0 DOMBuilder was replaced with DOMLSParser. You can check out
  the current revision (trunk) by following the instructions on this
  page:

  http://xerces.apache.org/xerces-c/source-repository.html

- Provide documentation for your feature in the doc/ directory. You need
  to document it in every place where LoadExternalDTD is documented.


> Secondly, Xerces' SAX2XMLReader and DOMBuilder have a property
> XMLUni::fgXercesSchemaFullChecking[2], which controls validation of schema
> files themselves. However, even when this property is set, Xerces doesn't
> validate the loaded schema files against its schemas. The second attached
> patch (schema-checking.patch) should change this. Is the current Xerces
> behaviour a bug?

No, this is not a bug. There is no real schema for XML Schema (there is
one which is not valid and is for illustration only). Xerces-C++ does
manual validation of schemas so turning on XML Schema validation on
schemas does not make much sense.

Thanks,
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to