From general-return-330-apmail-logging-general-archive=logging.apache.org@logging.apache.org Mon Nov 22 13:45:18 2004 Return-Path: Delivered-To: apmail-logging-general-archive@www.apache.org Received: (qmail 88575 invoked from network); 22 Nov 2004 13:45:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 22 Nov 2004 13:45:18 -0000 Received: (qmail 44379 invoked by uid 500); 22 Nov 2004 13:45:18 -0000 Delivered-To: apmail-logging-general-archive@logging.apache.org Received: (qmail 44343 invoked by uid 500); 22 Nov 2004 13:45:17 -0000 Mailing-List: contact general-help@logging.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: "Logging General" Delivered-To: mailing list general@logging.apache.org Received: (qmail 44329 invoked by uid 99); 22 Nov 2004 13:45:17 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [212.74.184.210] (HELO mail.qos.ch) (212.74.184.210) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 22 Nov 2004 05:45:14 -0800 Received: from kal.qos.ch (kal [192.168.1.3]) by mail.qos.ch (Postfix) with ESMTP id 4A7C81EC073 for ; Mon, 22 Nov 2004 14:49:35 +0100 (CET) Message-Id: <6.0.3.0.0.20041122143604.01e45000@mail.qos.ch> X-Sender: ceki@mail.qos.ch (Unverified) X-Mailer: QUALCOMM Windows Eudora Version 6.0.3.0 Date: Mon, 22 Nov 2004 14:45:39 +0100 To: general@logging.apache.org From: Ceki =?iso-8859-1?Q?G=FClc=FC?= Subject: Ensuring well-formedness of XML document Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1"; format=flowed Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hello, Given the open-ended nature of log4j configuration files in log4j 1.3, log4h configuration files do not have a DTD. However, assuming a non-validating javax.xml.parsers.SAXParser, is there a way for an application to make sure that an XML document is well-formed before attempting to parse it? I guess not since most SAX parsers seem to make only one pass through the file... Any suggestions or pointers would be highly appreciated. --=20 Ceki G=FClc=FC The complete log4j manual: http://qos.ch/eclm Professional log4j support: http://qos.ch/log4jSupport =20