The Document Entity is Special

The differences between the document entity and any other external parsed entity are:

  1. The document entity can begin with an XML declaration, other external parsed entities with a text declaration.
  2. The document entity can contain a document type declaration.

Back-link to spec

Copyright © 1998, Tim Bray. All rights reserved.