comp.lang.ada
 help / color / mirror / Atom feed
From: Wes Groleau <wesgroleau@despammed.com>
Subject: Re: XML generator
Date: Mon, 20 May 2002 12:11:26 -0500
Date: 2002-05-20T12:11:26-05:00	[thread overview]
Message-ID: <3CE92E3E.907E487F@despammed.com> (raw)
In-Reply-To: slrnaebf9h.tev.aidan@crushed.velvet.net



> I'd be worried if you're writing XML for which a valid DTD cannot be
> produced...

The original "requirements" were a set of sample
XML files without DTD refs.  I generated a DTD
by reverse engineering when I inherited the tool.
The tool currently has no XML knowledge at a low
level.  It writes out fragments that have to be
made valid XML by keeping the sequence of calls
correct.

So instead of something like

Element (Tag        => X,
         attributes => (...),
         content    => Element ( ...

which would presumably prevent syntax errors,
we have more like

Write ("<");
... conditionals
Write ("X");
... conditionals
Write ( ... attributes 
...etc.
...
...
Write (">"); -- Let's see, which tag ends here,
             -- and is it a start tag or an end tag?

I think this illustrates why I'm looking to find
or write something different.  :-)

-- 
Wes Groleau
http://freepages.rootsweb.com/~wgroleau



  parent reply	other threads:[~2002-05-20 17:11 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
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 [this message]
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