UNPKG

xml-helper-ts

Version:

A TypeScript library for XML parsing, validation with XSD schema, and XML/JSON conversion - built from scratch without external dependencies

18 lines 593 B
import { XsdSchema, XmlNode, ValidationError } from './types'; export declare class XmlValidator { private schema; private errors; constructor(schema: XsdSchema); validate(xmlNode: XmlNode): ValidationError[]; private validateElement; private validateAttributes; private validateSimpleContent; private validateSimpleTypeContent; private validateComplexContent; private validateInlineContent; private validateRestrictions; private validateSimpleValue; private isBuiltInType; private addError; } //# sourceMappingURL=xml-validator.d.ts.map