commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: [digester] The element type ... must be terminated by the matching end-tag
Date Fri, 13 May 2011 21:29:14 GMT
-----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


Mime
View raw message