Validates one NZB document without handing it to an XML library: the shell runs
where there is no DOMParser, and a strict scanner cannot be talked into loading
a DTD or expanding an entity (NAP-NZB, Submission). Accepted is well-formed XML
within the shell's bounds whose root is nzb in the NZB namespace and which lists
at least one file with a segment. An external doctype is read past and never
fetched; an internal subset, any declaration, any entity beyond XML's five and any
processing instruction are refused.
Parameters
bytes: Uint8Array
The document as it will be handed to the downloader.
Validates one NZB document without handing it to an XML library: the shell runs where there is no
DOMParser, and a strict scanner cannot be talked into loading a DTD or expanding an entity (NAP-NZB, Submission). Accepted is well-formed XML within the shell's bounds whose root isnzbin the NZB namespace and which lists at least one file with a segment. An external doctype is read past and never fetched; an internal subset, any declaration, any entity beyond XML's five and any processing instruction are refused.