UNPKG

xsd-schema-validator

Version:
20 lines (17 loc) 404 B
import { Readable as ReadableStream } from "stream"; export type ValidateResult = { valid: boolean; result: string; messages: string[]; }; export function validateXML( xml: string | Buffer| ReadableStream | { file: string }, pathToXsd: string, options?: { insecure?: boolean } ): Promise<ValidateResult>; /** * @internal */ export function setup(): Promise<void>;