Type Alias XmlStatus

XmlStatus: {
    error?: undefined;
    parsed: Document;
} | {
    error: HTMLElement;
    parsed?: undefined;
}

On success parsed points to the XML Document. On success error points to an HTMLElement explaining the problem. Exactly one of those two fields will be undefined.