@rxap/xml-parser
Version:
Provides a set of decorators and services for parsing and serializing XML documents into TypeScript classes. It simplifies the process of mapping XML elements and attributes to class properties, handling data validation, and serializing objects back into
21 lines (20 loc) • 851 B
TypeScript
import { ParsedElement } from '../../elements/parsed-element';
import { XmlSerializerService } from '../../xml-serializer.service';
import { RequiredElementOptions, RequiredElementMixin } from './required-element.mixin';
import { RxapElement } from '../../element';
export interface ChildrenElementOptions extends RequiredElementOptions {
min?: number;
max?: number;
group?: string;
}
export interface ChildrenElementMixin extends RequiredElementMixin {
}
export declare class ChildrenElementMixin {
readonly options: any;
constructor(options?: any);
get min(): number | null;
get max(): number | null;
getChildren(element: RxapElement): RxapElement[] | null;
coerceGroup(element: RxapElement): RxapElement;
setChildren(element: RxapElement, children: ParsedElement[], xmlParser: XmlSerializerService): void;
}