With the exception of the XML and doctype declarations, what's allowed in a document's epilog of miscellaneous information is exactly what's allowed in the prolog: comments and processing instructions 2001, John E. Simpson, JustXML, Prentice Hall Professional, →ISBN, page 45: