Skip to main content
Version: 2.1.2

ElementCompact

export interface ElementCompact {
[key: string]: any;
_declaration?: {
_attributes?: DeclarationAttributes;
};
_instruction?: {
[key: string]: string;
};
_attributes?: Attributes;
_cdata?: string;
_doctype?: string;
_comment?: string;
_text?: string | number;
}

xml-js defined compact js object representation of xml elements.

you can use this helper to help converting xml between js objects.