Return-Path: Mailing-List: contact general-help@xml.apache.org; run by ezmlm Delivered-To: mailing list general@xml.apache.org Received: (qmail 39337 invoked from network); 25 May 2000 12:31:10 -0000 Received: from ns.netnord.dk (HELO aalborg.netnord.dk) (mta@192.38.202.2) by locus.apache.org with SMTP; 25 May 2000 12:31:10 -0000 Received: from kridt (kridt.geografik.dk [130.225.63.208]) by aalborg.netnord.dk (Post.Office MTA v3.5.1 release 219 ID# 0-52465U1200L200S0V35) with SMTP id dk for ; Thu, 25 May 2000 14:31:07 +0200 Reply-To: From: dt@netnord.dk (Dennis Thrysoe - netnord) To: Subject: Serializing a DOM Date: Thu, 25 May 2000 14:30:55 +0200 Message-ID: <000a01bfc645$12502ab0$d03fe182@geografik.dk> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Importance: Normal X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N Hi, I asked a couple of weeks ago how I could make a DOM into a series of SAX calls, and it was suggested to overwrite HTMLSerializer, as XMLSerializer is final. But HTMLSerializer's implementation of ContentHandler (through BaseMarkupSerializer) lacks the throws clauses, which in turn makes it impossible to throw SAXExceptions from the ContentHandler methods on descendents of HTMLSerializer. I was wondering what the reason is that XMLSerializer was made final. It seems appropriate enough for me to sub-class it. I suggest that BaseMarkupSerializer is made able to throw SAXExceptions - thus giving future MarkupSerializers as such the ability to indicate that they are choking. I also suggest that a DOMSerializer be made and included with Xerces. If it would be appropriate, I'd be glad to (help) implement it. I simply believe that this is a much needed and missed feature. (Caching DOMs and having them fake SAX calls). Let me know what you think. -dennis