xmlapi-web
Version:
browser implementation of xmlapi
35 lines (34 loc) • 1.56 kB
TypeScript
import { WebapiDocument } from './webapi_document';
import { WebapiElement } from './webapi_element';
import { WebapiAttribute } from './webapi_attribute';
import { AbstractNode, XmlapiXpathResult } from 'xmlapi';
export declare class WebapiNode extends AbstractNode {
protected wrapee: Node;
constructor(wrapee: Node);
native: Node;
document: WebapiDocument;
parent: WebapiElement;
previousSibling: WebapiNode | WebapiElement;
nextSibling: WebapiNode | WebapiElement;
text: string;
type: 'element' | 'text' | 'comment' | 'cdata';
equals(other: WebapiNode): boolean;
remove(): this;
replace(replacement: WebapiNode): void;
insertBefore(newNode: WebapiNode): void;
insertAfter(newNode: WebapiNode): void;
getPath(): string;
evaluate(xpath: string, nsMap?: Object): XmlapiXpathResult;
evaluateNode(xpath: string, nsMap?: Object): WebapiNode | WebapiElement;
evaluateElement(xpath: string, nsMap?: Object): any;
evaluateAttribute(xpath: string, nsMap?: Object): WebapiAttribute;
evaluateNodes(xpath: string, nsMap?: Object): Wu.WuIterable<AbstractNode>;
evaluateElements(xpath: string, nsMap?: Object): Wu.WuIterable<WebapiElement>;
evaluateAttributes(xpath: string, nsMap?: Object): Wu.WuIterable<WebapiAttribute>;
serialize(): string;
clone(): WebapiNode | WebapiElement;
protected _evaluateManyOrdered(xpath: string, nsMap?: Object): Wu.WuIterable<Node>;
}
export declare function createNsResolver(nsMap: Object): {
lookupNamespaceURI(key: any): any;
};