xmlapi-libxmljs
Version:
libxmljs implementation of xmlapi
34 lines (33 loc) • 1.53 kB
TypeScript
import { LibxmljsDocument } from './libxmljs_document';
import { LibxmljsElement } from './libxmljs_element';
import { LibxmljsAttribute } from './libxmljs_attribute';
import { AbstractNode, XmlapiXpathResult } from 'xmlapi';
export declare class LibxmljsNode extends AbstractNode {
protected wrapee: any;
constructor(wrapee: any);
native(): any;
document(): LibxmljsDocument;
parent(): LibxmljsElement;
previousSibling(): LibxmljsNode | LibxmljsElement;
nextSibling(): LibxmljsNode | LibxmljsElement;
previousElementSibling(): LibxmljsElement;
nextElementSibling(): LibxmljsElement;
text(value?: string): any;
type(): any;
isSame(other: LibxmljsNode): boolean;
getPath(): any;
remove(): this;
replace(replacement: LibxmljsNode): void;
insertBefore(newNode: LibxmljsNode): void;
insertAfter(newNode: LibxmljsNode): void;
evaluate(xpath: string, nsMap?: Object): XmlapiXpathResult;
evaluateNode(xpath: string, nsMap?: Object): any;
evaluateElement(xpath: string, nsMap?: Object): LibxmljsElement;
evaluateAttribute(xpath: string, nsMap?: Object): LibxmljsAttribute;
evaluateNodes(xpath: string, nsMap?: Object): Wu.WuIterable<LibxmljsNode>;
evaluateElements(xpath: string, nsMap?: Object): Wu.WuIterable<LibxmljsElement>;
evaluateAttributes(xpath: string, nsMap?: Object): Wu.WuIterable<LibxmljsAttribute>;
clone(): LibxmljsNode | LibxmljsElement;
serialize(): any;
protected _evaluateMany(xpath: any, nsMap?: any): any;
}