Return-Path: X-Original-To: apmail-commons-user-archive@www.apache.org Delivered-To: apmail-commons-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 129B948FD for ; Fri, 13 May 2011 21:29:46 +0000 (UTC) Received: (qmail 21209 invoked by uid 500); 13 May 2011 21:29:44 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 21123 invoked by uid 500); 13 May 2011 21:29:44 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 21087 invoked by uid 99); 13 May 2011 21:29:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 May 2011 21:29:44 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [76.96.62.64] (HELO qmta07.westchester.pa.mail.comcast.net) (76.96.62.64) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 May 2011 21:29:36 +0000 Received: from omta23.westchester.pa.mail.comcast.net ([76.96.62.74]) by qmta07.westchester.pa.mail.comcast.net with comcast id j9UU1g0011c6gX8579VGyW; Fri, 13 May 2011 21:29:16 +0000 Received: from [192.168.1.201] ([69.143.109.145]) by omta23.westchester.pa.mail.comcast.net with comcast id j9VE1g00538FjT13j9VEfg; Fri, 13 May 2011 21:29:15 +0000 Message-ID: <4DCDA2AA.6040108@christopherschultz.net> Date: Fri, 13 May 2011 17:29:14 -0400 From: Christopher Schultz User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 To: Commons Users List Subject: Re: [digester] The element type ... must be terminated by the matching end-tag References: In-Reply-To: X-Enigmail-Version: 1.2a1pre Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Patrick, On 5/4/2011 4:18 AM, Patrick Diviacco wrote: > Ok, however browsers have the same problem my editor has in displaying and > matching tags in big files. We use a custom handler called a TracingSAXHandler which extends DefaultHandler, overrides the setDocumentLocator method to capture the Locator object, and then uses a stack to observe the start/end element events. Anytime something goes wrong, you can consult the Locator to see where you are. Try using something like that and just do a SAXParser.parse() using that handler: it should be able to tell you where the start of that element is, line and column. Hope that helps, - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk3NoqoACgkQ9CaO5/Lv0PDyjACghiIeYtAQ7aWxIpf3ptC06Xxi KccAn1uiW8JrsUnkWgdp8wBp86GADoAf =6Gfe -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@commons.apache.org For additional commands, e-mail: user-help@commons.apache.org