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.4 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00 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 20:31:45 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!195.54.122.107!newsfeed1.bredband.com!bredband!diablo.netcom.net.uk!netcom.net.uk!btnet-peer!btnet-peer0!btnet!psiuk-p2!psiuk-p3!uknet!psiuk-n!news.pace.co.uk!nh.pace.co.uk!not-for-mail From: "Marin David Condic" Newsgroups: comp.lang.ada Subject: Re: XML generator Date: Wed, 15 May 2002 12:59:18 -0400 Organization: Posted on a server owned by Pace Micro Technology plc Message-ID: References: <3CE02EE1.8FEBD4DE@despammed.com> <3CE03784.DD40698E@despammed.com> <3CE14210.AC3FC998@despammed.com> <3CE2875B.F2A54C0D@despammed.com> NNTP-Posting-Host: dhcp-200-133.miami.pace.co.uk X-Trace: nh.pace.co.uk 1021481959 1626 136.170.200.133 (15 May 2002 16:59:19 GMT) X-Complaints-To: newsmaster@news.cam.pace.co.uk NNTP-Posting-Date: 15 May 2002 16:59:19 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Xref: archiver1.google.com comp.lang.ada:24154 Date: 2002-05-15T16:59:19+00:00 List-Id: I've been tinkering with building a DOM in Ada & the last time I checked the description of Level 1 for a document, there wasn't a "Write out this document in XML text to a file or stream..." operation. Basically, you, yourself, can walk the DOM tree & get back the data (often in its original text form - although you may have to deal with normalization) and write your own file that way. This may help prevent the errors Wes seemed to be concerned about, but it may not eliminate them if your tree-walk isn't correct. The DOM spec was pretty lame with respect to how stuff gets into or out of the DOM. IMHO, they *could* have specified some interfaces to parse XML sources for input and reproduce valid XML as output. Of course, having it specified (in a so-called "Language Neutral" way - "Language Neutral" as long as your language is C++ or Java.) doesn't mean that all implementors are going to give it to you or that its going to work correctly. It just seems like they left some big, gaping holes in the spec. MDC -- Marin David Condic Senior Software Engineer Pace Micro Technology Americas www.pacemicro.com Enabling the digital revolution e-Mail: marin.condic@pacemicro.com "Pascal Obry" wrote in message news:usn4ticmy.fsf@wanadoo.fr... > > I'm not expert but this seems true for SAX. With the > DOM model in memory you have a set of methods to > walk on the tree and get various information for each > node. >