Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 34671 invoked from network); 4 Jun 2004 16:31:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 4 Jun 2004 16:31:10 -0000 Received: (qmail 73117 invoked by uid 500); 4 Jun 2004 16:31:03 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 72941 invoked by uid 500); 4 Jun 2004 16:31:00 -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 72821 invoked by uid 99); 4 Jun 2004 16:30:59 -0000 Received: from [128.91.62.2] (HELO snowball.pcbi.upenn.edu) (128.91.62.2) by apache.org (qpsmtpd/0.27.1) with ESMTP; Fri, 04 Jun 2004 09:30:59 -0700 Received: from pcbi.upenn.edu (localhost.localdomain [127.0.0.1]) by snowball.pcbi.upenn.edu (8.12.8/8.12.8) with ESMTP id i54GTone022935; Fri, 4 Jun 2004 12:29:51 -0400 Message-ID: <40C0A3DB.5020508@pcbi.upenn.edu> Date: Fri, 04 Jun 2004 12:31:23 -0400 From: Steve Fischer User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) X-Accept-Language: en-us, en MIME-Version: 1.0 To: commons-user@jakarta.apache.org Subject: Digester: No rules found matching Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hello- I am new to Digester. I am using it for a simple application. I would like digester to halt if the XML file contains unexpected tags or attributes. By unexpected I mean that there is no rule matching them. In other words, the file must only contain XML that conforms to my rules. But, Digester continues past these, and only mentions the problem in the log under DEBUG mode. Questions: - can i make digester stop on a no-rule-found condition? (if not, what is the thinking behind why that is not an option?) - or, do i need to define a DTD for my xml and use validation? If so, what errorHandler should I use? thanks, steve --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org