comp.lang.ada
 help / color / mirror / Atom feed
From: "Marin David Condic" <dont.bother.mcondic.auntie.spam@[acm.org>
Subject: Re: XML generator
Date: Wed, 15 May 2002 12:59:18 -0400
Date: 2002-05-15T16:59:19+00:00	[thread overview]
Message-ID: <abu457$1iq$1@nh.pace.co.uk> (raw)
In-Reply-To: usn4ticmy.fsf@wanadoo.fr

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" <p.obry@wanadoo.fr> 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.
>






  reply	other threads:[~2002-05-15 16:59 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-13 21:23 XML generator Wes Groleau
2002-05-13 21:51 ` Ingo Marks
2002-05-13 22:00   ` Wes Groleau
2002-05-14 16:57     ` Wes Groleau
2002-05-15  2:59       ` Steve Doiel
2002-05-15 16:05         ` Wes Groleau
2002-05-15 16:44           ` Pascal Obry
2002-05-15 16:59             ` Marin David Condic [this message]
2002-05-15 22:20             ` Wes Groleau
2002-05-16 13:50               ` news.realtime.net
2002-05-16 14:30               ` Marin David Condic
2002-05-17  1:15                 ` Aidan Skinner
2002-05-17 13:40                   ` Marin David Condic
2002-05-18  2:32                     ` Aidan Skinner
2002-05-20 14:38                       ` Marin David Condic
2002-05-20 16:20                       ` Stephen Leake
2002-05-20 17:11                       ` Wes Groleau
2002-05-20 18:13                         ` Marin David Condic
2002-05-21 14:59                           ` Pascal Obry
2002-05-21 17:43                             ` Marin David Condic
2002-05-17 13:47                 ` Wes Groleau
2002-05-22  9:43                   ` Georg Bauhaus
2002-05-22 17:31                     ` Wes Groleau
2002-05-16  1:55           ` Steve Doiel
2002-05-16  9:49             ` Emmanuel Briot
2002-05-16 17:09             ` Wes Groleau
2002-05-19  2:54       ` David Botton
2002-05-19 20:26         ` achrist
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox