Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 81547 invoked from network); 12 Sep 2004 00:02:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 12 Sep 2004 00:02:00 -0000 Received: (qmail 84634 invoked by uid 500); 12 Sep 2004 00:01:52 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 84612 invoked by uid 500); 12 Sep 2004 00:01:52 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 84599 invoked by uid 99); 12 Sep 2004 00:01:52 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=DNS_FROM_RFC_ABUSE X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [206.190.39.104] (HELO web52309.mail.yahoo.com) (206.190.39.104) by apache.org (qpsmtpd/0.28) with SMTP; Sat, 11 Sep 2004 17:01:50 -0700 Message-ID: <20040912000145.8724.qmail@web52309.mail.yahoo.com> Received: from [68.171.238.16] by web52309.mail.yahoo.com via HTTP; Sat, 11 Sep 2004 17:01:45 PDT Date: Sat, 11 Sep 2004 17:01:45 -0700 (PDT) From: Reid Pinchback Subject: Re: [Digester] Schema validation? To: Jakarta Commons Users List , neilblue@yahoo.com In-Reply-To: <20040911222326.18904.qmail@web41204.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Surprisingly, no unit test in the source exercising this. From what I can see from a quick scan of the source, I think you'll want to make sure you have a very recent version of Xerces-J at the front of your classpath, so you'll know you have a parser that understands how to validate against an XSD file. Be sure to do: Digester d=new Digester(); d.setNamespaceAware(true); d.setValidating(true); before parsing. I don't think you'll need to muck around with the schemaLocation and schemaLocation features/properties, if you have a recent Xerces-j, but if you run into any problems, that is where I'd start looking. Reid --- Neil Blue wrote: > Hello, > > I though there would be a lot of posts on this, but > I > can't seem to find any. Is there a way to turn on > schema validation when parsing an XML config file > with > Digester 1.6. > > Thanks > Neil > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam > protection around > http://mail.yahoo.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > commons-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: > commons-user-help@jakarta.apache.org > > __________________________________ Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. http://promotions.yahoo.com/new_mail --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org