[
Lists Home |
Date Index |
Thread Index
]
- From: Lars Marius Garshol <larsga@ifi.uio.no>
- To: xml-dev@ic.ac.uk
- Date: 10 Jan 1999 23:41:26 +0100
* Samuel R. Blackburn
|
| <H1>Text</H1> More Text <H2>Less Text</H2>
|
| Is this valid XML? " More Text " is orphaned.
* Jonathan Borden
|
| This fragment appears to be a valid, well-formed HTML document but
| not a valid nor well formed XML document.
It is not a valid HTML document, simply because it has no DOCTYPE
declaration. This makes it impossible for an SGML parser to infer the
document element type as well as the omitted tags.
Wqell-formed does not apply to HTML, although the newest SGML TC has
some terms that are more or less equivalent (although finer-grained)
with well-formed.
| HTML, which has an SGML DTD, allows both the HTML and BODY tags to
| be optional.
It does, but TITLE is required (and missing in this document). So even
with a DOCTYPE this would still be invalid.
--Lars M.
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)
|