From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00,FREEMAIL_FROM, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c9d14a9b4208ef0b X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-05-15 09:05:55 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!cpk-news-hub1.bbnplanet.com!cambridge1-snf1.gtei.net!news.gtei.net!bos-service1.ext.raytheon.com!dfw-service2.ext.raytheon.com.POSTED!not-for-mail Message-ID: <3CE2875B.F2A54C0D@despammed.com> From: Wes Groleau Reply-To: wesgroleau@despammed.com X-Mailer: Mozilla 4.77 [en] (Windows NT 5.0; U) X-Accept-Language: en,es-MX,es,pt,fr-CA,fr MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: XML generator References: <3CE02EE1.8FEBD4DE@despammed.com> <3CE03784.DD40698E@despammed.com> <3CE14210.AC3FC998@despammed.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Wed, 15 May 2002 11:05:47 -0500 NNTP-Posting-Host: 151.168.144.162 X-Complaints-To: news@ext.ray.com X-Trace: dfw-service2.ext.raytheon.com 1021478755 151.168.144.162 (Wed, 15 May 2002 11:05:55 CDT) NNTP-Posting-Date: Wed, 15 May 2002 11:05:55 CDT Organization: Raytheon Company Xref: archiver1.google.com comp.lang.ada:24101 Date: 2002-05-15T11:05:47-05:00 List-Id: > > On second thought, it can be used to WRITE > > XML only if I provide the callbacks--which > > are the very parts I was trying to avoid writing. > > I belive this is only true if you're using SAX. I think with DOM you can > create the structures in memory and then make a single call to write the > tree. DOM is merely an allegedly language-independent specification of features that must be available in the internal representation. Nothing about writing out that I could see in the DOM spec. And XML/Ada docs say that you'd have to write callbacks to get anything out of a DOM tree. What I am trying to do is avoid future bugs in a tool that currently writes XML as little independent pieces. It has no concept of nesting or of matching beginnings to ends, and so it's very easy for a change to unintentionally make the results invalid or malformed. -- Wes Groleau http://freepages.rootsweb.com/~wgroleau