According to  "Extensible Markup Language (XML) 1.1 (Second Edition)"
http://www.w3.org/TR/2006/REC-xml11-20060816

document ::= ( prolog element Misc* )
prolog ::= XMLDecl Misc* (doctypedecl Misc*)?
doctypedecl ::= '<!DOCTYPE' ...

You can have at most one DOCTYPE, between the XML declaration and the
root element, optionally surrounded by processing instructions and
comments.

-W


On 05/08/2012, Dan Shelton <[email protected]> wrote:
> On 5 August 2012 06:29, John Cowan <[email protected]> wrote:
>> On 8/5/12, Dan Shelton <[email protected]> wrote:
>>> is it valid that a document can have multiple DOCTYPE chunks, like the
>>> one below, in one document? Or is only one allowed at the beginning of
>>> the document?
>>>
>>> <!DOCTYPE mime-info [
>>>   <!ELEMENT mime-info (mime-type)+>
>>
>> No, it isn't valid.
>
> Are you sure there is no way to define entities somehow in the middle
> of an document?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to