@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
9 lines (8 loc) • 605 B
TypeScript
import { ParsedElement } from '../elements/parsed-element';
import { ParsedElementType } from './utilities';
export declare const ELEMENT_NAMESPACE: unique symbol;
export declare function ElementNamespace(...namespaceList: string[]): any;
export declare function ElementNamespace(map: Record<string, string>): any;
export declare function hasElementNamespaceMetadata(element: ParsedElementType<any>): boolean;
export declare function getElementNamespaceMetadata(element: ParsedElementType<any>): Record<string, string>;
export declare function applyElementNamespaceMetadata(element: ParsedElement): void;