XML can describe more than text fields. Depending on the parser and its configuration, a document can request entity expansion or external resources. A service that only needs a title should not grant those capabilities. OWASP lists XML external entity risks within security misconfiguration, A02:2025.
These labs use an explicit document envelope to practice the policy. They don't parse XML. Reject a DOCTYPE and any external resource before reading the title, while preserving ordinary title characters. Carry that reasoning to the actual parser you use: disable the relevant capabilities through its documented settings, fail if a required setting can't be applied, and test its external-resource behavior.
Read the fixed handler, then apply the same idea to each exercise.