[xsd-users] Enabling the Full Checking parameter on the Xerces
Parser
Duncan Blair
duncan.blair at scu.edu.au
Fri Sep 11 03:05:02 EDT 2009
Hi Boris,
Thanks for the quality reply. It seems obvious now you say it. I will
rethink my approach.
Thanks again,
Duncan
On 10/09/2009 5:13 PM, Boris Kolpackov wrote:
> Hi Duncan,
>
> Duncan Blair<duncan.blair at scu.edu.au> writes:
>
>> I am trying to enable the fgXercesSchemaFullChecking option on the
>> xerces parser. It appears that there is no way to enable it no matter
>> what flags are passed. This results in (atleast) an unreported error
>> being thrown if an element in the schema is missing a required attribute.
>
> The full schema checking feature in Xerces-C++ enables the more
> expensive error detection in the schema definition itself, as
> opposed to the XML documents. Since the schemas that you use
> for validation were presumably compiled with XSD (which has
> the full checking enabled), there is normally no need to do
> the same in the application. In other words, if you use the
> same schemas for code generation and validation, then the
> full checking has been performed during code generation.
>
> There could be (rare) situations where you use schemas for
> validation which haven't been processed by XSD. For example,
> you could have schemas that are used to validate content
> matched by wildcards. In such situations it may make sense
> to use the full schema checking feature. To enable it, you
> will need to perform your own XML-to-DOM parsing. This way
> you will be able to configure the parser the way you want.
> See the 'multiroot' example in the examples/cxx/tree/
> directory, in particular, the dom-parser.* files, for an
> example on how to do this.
>
> Boris
>
>
--
------------------------------------------------
Duncan Blair
B.InfTech(Software Engineering)
B.InfTech(Hons 1st class)
* Technical Officer
Southern Cross University
- Faculty of Health and Applied Science
-- School of Health and Human Science
Office: M.1.30 (M block, Coffs Harbour Campus)
Email: duncan.blair at scu.edu.au
Phone(International): +61 2 6659 3064
Phone(Australia): 02 6659 3064
Fax(International): +61 2 6659 3202
Fax(Australia): 02 6659 3202
Mobile: 0408 628 432
Postal:
Health and Human Science
Southern Cross University
Hogbin Dr.
Coffs Harbour NSW 2450
Australia
-------------------------------------------------
http://infotech.scu.edu.au/~dblair/
-------------------------------------------------
More information about the xsd-users
mailing list