UNPKG

xmlapi

Version:

a common interface for Node and browser native XML APIs

11 lines (10 loc) 500 B
import { AbstractNode } from './abstract_node'; import { AbstractElement } from './abstract_element'; export declare type DocCreator = (xmlstr: string) => AbstractDocument; export declare abstract class AbstractDocument { abstract root(): AbstractElement; abstract equals(other: AbstractDocument): boolean; abstract createElement(name: string, nsUri?: string): AbstractElement; abstract createTextNode(value: string): AbstractNode; abstract serialize(pretty?: boolean): string; }