Consider a sample XML document. It refers to a DTD, perhaps with a DOCTYPE's system identifier, or maybe by a parameter entity in an internal document type subset, or maybe even (not shown) using RDDL.

The DTD in turn includes a fragment and three external character entity files.

The document includes three chapters and references an image.