Return-Path: Delivered-To: apmail-xerces-c-users-archive@www.apache.org Received: (qmail 32496 invoked from network); 3 Jan 2007 08:57:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Jan 2007 08:57:50 -0000 Received: (qmail 9579 invoked by uid 500); 3 Jan 2007 08:57:57 -0000 Delivered-To: apmail-xerces-c-users-archive@xerces.apache.org Received: (qmail 9569 invoked by uid 500); 3 Jan 2007 08:57:57 -0000 Mailing-List: contact c-users-help@xerces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: c-users@xerces.apache.org Delivered-To: mailing list c-users@xerces.apache.org Received: (qmail 9558 invoked by uid 99); 3 Jan 2007 08:57:56 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Jan 2007 00:57:56 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [192.77.186.13] (HELO mx1-stg.progress.com) (192.77.186.13) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Jan 2007 00:57:46 -0800 Received: from mx1-stg.progress.com (127.0.0.1) by mx1-stg.progress.com (MlfMTA v3.2r1b3) id hjdo0k0171so for ; Wed, 3 Jan 2007 03:57:25 -0500 (envelope-from ) Received: from progress.com ([192.233.92.16]) by mx1-stg.progress.com (SonicWALL 5.0.1.8347) with ESMTP; Wed, 03 Jan 2007 03:57:25 -0500 Received: from NTEXFE02.bedford.progress.com (ntexfe02 [172.16.2.62]) by progress.com (8.11.6/8.11.6) with ESMTP id l038vPD00420 for ; Wed, 3 Jan 2007 03:57:25 -0500 (EST) Received: from nbamassari.datadirect.com ([172.16.204.40]) by NTEXFE02.bedford.progress.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.1830); Wed, 3 Jan 2007 03:57:25 -0500 X-Mailer: QUALCOMM Windows Eudora Version 7.1.0.9 Date: Wed, 03 Jan 2007 09:57:14 +0100 To: c-users@xerces.apache.org From: Alberto Massari Subject: Re: validating XML Schema files In-Reply-To: <22241-77837@sneakemail.com> References: <22241-77837@sneakemail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Message-ID: X-OriginalArrivalTime: 03 Jan 2007 08:57:25.0287 (UTC) FILETIME=[3033D370:01C72F15] X-Mlf-Version: 5.0.1.8347 X-Mlf-UniqueId: o200701030857250194511 X-Virus-Checked: Checked by ClamAV on apache.org Hi Uwe, At 23.22 02/01/2007 +0000, 4pzbrog02@sneakemail.com wrote: >Hello folks, > >My application processes XML Schema files on the DOM level (.xsd >files are parsed with XercesDOMParser::parse()). However, to detect >user errors in the schema files, I'd like to turn on validation for them. > >Is that at all possible? The only way you can test for a grammar to be valid is by loading it using loadGrammar. Using the DTD or the XMLSchema provided by the specs will in any case result in less validation checks than the ones listed in the specs itself. Alberto >I ran some tests with the schema for schemas, which XercesDOMParser >rejects (I assume that's because its built-in types are redefined). >I also tried to feed the schema DTD into the parser, without success >(Xerces seems to expect a schema rather than a DTD when it requests >a resource for a namespace identifier) > >Can anyone point me into the right direction? > >I can post my test code as well if that helps. > >Cheers, > >Uwe > > > >-------------------------------------- >Protect yourself from spam, >use http://sneakemail.com