xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Hodges <harmo...@swbell.net>
Subject Re: Yet another question about creating a Document
Date Fri, 20 Oct 2000 00:08:00 GMT
Then I totally misunderstand doctype.  I have lots of XML documents with a
root element with a different name from the doctype.

Why would the root element have to be named after the doctype?

----- Original Message -----
From: "Sean Kelly" <kelly@ad1440.net>
To: <general@xml.apache.org>
Sent: Thursday, October 19, 2000 4:54 PM
Subject: Re: Yet another question about creating a Document


> > Again, I don't think the name of the root element is well known for
> > non-validating uses of DOM.  Is it?
>
> But if you know the doctype ahead of time, you know the root element,
> too.  If you've set your doctype to be
>
> <!DOCTYPE box "..." "...">
>
> then the root element had better be <box> ... unless you want to trick
> people who will eventually get ahold of these documents.  :-)
>
> --Sean
>
>
>
> ---------------------------------------------------------------------
> In case of troubles, e-mail:     webmaster@xml.apache.org
> To unsubscribe, e-mail:          general-unsubscribe@xml.apache.org
> For additional commands, e-mail: general-help@xml.apache.org
>


Mime
View raw message