xsd-schema-validator
Version:
A (XSD) schema validator for nodejs
20 lines (17 loc) • 404 B
TypeScript
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>;