There is no mechanism for establishing ID values in application/xml documents that have no internal or external subset: xmlIDSemantics-32.
There is no mechanism for establishing general text entities (aka “character entities”) in XML documents that have no internal or external subset: Character Entities: An XML Core WG View.