The XML of an answer MUST be read by a reader that takes one root element, its children, its text and the five named and the numeric entities, and MUST refuse a document type, a comment, CDATA, an instruction, a character XML 1.0 does not allow, text after the root, and a document past a bound of size, depth or elements; a listing and an error MUST be read from it.
Enforced (check): .github: cd commons/anyfs-s3 && bun run verify — suite/xml.test.ts: the strict reader and its refusals
Proved by: anyfs-s3/suite/xml.test.ts
Written in: anyfs-s3/src/xml.ts
Tests: passed: suite/xml.test.ts a document past a bound of size, depth or number of elements is refused, and one at the bo; passed: suite/xml.test.ts a listing is read as S3 writes it: the keys as given, the entity tags without their quotes; passed: suite/xml.test.ts an error is read as its code, message and request id, and an answer that is neither a list; passed: suite/xml.test.ts hostile documents are refused: a document type with entities (the billion laughs and the e; passed: suite/xml.test.ts property: reading text never throws, and a name or a text made of any characters that XML and 1 more