Short Tags
Michael Alaly (alaly@inlink.com)
Wed, 13 May 1998 07:48:35 -0500
This is a multi-part message in MIME format.
------=_NextPart_000_0248_01BD7E43.88AA1B40
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Just a small note I forgot to add in my last message:
An XML parser does have all of the information to be able to process a =
document with short tags if you don't care about debugging. However, if =
I have a document with 10 000 start tags and with 9 999 end tags, the =
only information a parser can give is that the document isn't valid. =
This is because it won't know which elements are complete and which are =
still open. If it made some futile attempt to detect by checking with =
the DTD and debugging that way, it still isn't exact. Whereas, using =
long tags the parser can search for exactly which tag isn't closed and =
output its starting line position. This makes debugging cause a lot less =
headaches.=20
Another part of my two cents,
Cheers,
Michael Alaly
alaly@inlink.com | 314.878.6474
------=_NextPart_000_0248_01BD7E43.88AA1B40
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
Just a small note I forgot to add in =
my last=20
message:
An XML parser does have all of the information to be =
able to=20
process a document with short tags if you don't care about debugging. =
However,=20
if I have a document with 10 000 start tags and with 9 999 end tags, the =
only=20
information a parser can give is that the document isn't valid. This is =
because=20
it won't know which elements are complete and which are still open. If =
it made=20
some futile attempt to detect by checking with the DTD and debugging =
that way,=20
it still isn't exact. Whereas, using long tags the parser can search for =
exactly=20
which tag isn't closed and output its starting line position. This makes =
debugging cause a lot less headaches.
Another part of my two cents,
Cheers,
------=_NextPart_000_0248_01BD7E43.88AA1B40--
xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@ic.ac.uk)