OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A simple guy with a simple problem

Simon St.Laurent wrote:

> At 02:51 PM 3/15/01 -0500, Jonathan Borden wrote:
> >Firstly simple guys with simple problems _don't_ use internal subsets.
> >because your toolset includes a fancy wrench doesn't mean that you ought
> >it for tightening a simple nut. My advice is to put that wrench away for
> >day in which your simple wrench doesn't work -- but don't throw it away
> >because the day you need it, you'll be glad its in your toolbox.
> I don't think Bob wants to use these things - he has to deal with an
> outside world where people send him such things, and regularly.  That
> wrench isn't anything he wants to use.

Right, and so we define 'equivalence' between two documents as

1) parsing two documents produces the same SAX events
2) parsing two documents produces an equivalent DOM object

(that's the simple way of saying that these two documents have the same

ok, so the point about validating vs. nonvalidating parsers is a good one
and so just tell Bob that if he accepts XML documents from external sources
with DOCTYPE definitions, then be sure to use a validating XML parser (or at
least one that handles external entities).

no fancy wrench needed.