comp.lang.ada
 help / color / mirror / Atom feed
From: Ray Blaak <blaak@infomatch.com>
Subject: Re: Regular expressions???
Date: 03 Jul 2001 21:53:37 -0700
Date: 2001-07-03T21:53:37-07:00	[thread overview]
Message-ID: <m3k81p2t2m.fsf@blight.transcend.org> (raw)
In-Reply-To: l8k81qs9kb.fsf@berlin.int.act-europe.fr

Emmanuel Briot <briot@gnat.com> writes:
> It was noted earlier than an XML parser is much easier to program than a RE
> parser. Obviously, this is true. However, writing a parser from scratch is
> actually not so simple, since the XML standard is pretty extensive. Support
> for entities (&name;), DTDs, ... was kind of a time-consuming task :-)

True enough. However, a simple XML parser that ignores encodings, validation,
and entities is still useful enough to process a significant number of files
(i.e. most files are in ASCII, don't use &entities too much, and grammars
are irrelevant to final client side processing that needs the grammars "built
in" to the evaluation code anyway).

Certainly such a thing is good enough for educational purposes, and for
"private" application storage formats.

Regular expressions however, are quickly erroneous with the slightest
preturbation of the data, due to the free form nested nature of XML.

-- 
Cheers,                                        The Rhythm is around me,
                                               The Rhythm has control.
Ray Blaak                                      The Rhythm is inside me,
blaak@infomatch.com                            The Rhythm has my soul.



  reply	other threads:[~2001-07-04  4:53 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-06-29  9:23 Regular expressions??? Michael Andersson
2001-06-29 10:05 ` David C. Hoos, Sr.
2001-06-29 16:13 ` Ray Blaak
2001-07-02  9:54   ` M. A. Alves
2001-07-03  8:25     ` Emmanuel Briot
2001-07-04  4:53       ` Ray Blaak [this message]
2001-06-30 14:49 ` Florian Weimer
2001-06-30 20:38 ` R. Srinivasan
replies disabled

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