UNPKG

xmlapi-libxmljs

Version:
43 lines (42 loc) 1.72 kB
import { LibxmljsNode } from './libxmljs_node'; import { LibxmljsAttribute } from './libxmljs_attribute'; import { AbstractElement } from 'xmlapi'; export declare class LibxmljsElement extends LibxmljsNode implements AbstractElement { constructor(wrapee: any); native(): any; namespaceUri(): string; namespacePrefix(): string; localName(): string; prefixedName(): string; firstChild(): LibxmljsNode | LibxmljsElement; child(index: number): LibxmljsNode | LibxmljsElement; lastChild(): LibxmljsNode | LibxmljsElement; lastElementChild(): LibxmljsElement; hasAttributes(): boolean; attributes(): LibxmljsAttribute[]; attribute(name: string): string; attributeNs(nsUri: string, localName: string): any; setAttribute(name: string, value: any): LibxmljsElement; renameAttributeIfExists(nameOld: string, nameNew: string): void; removeAttribute(name: string): void; appendChild(child: LibxmljsNode): LibxmljsNode; buildNsMap(): { [prefix: string]: string; }; clone(): LibxmljsElement; name: () => string; attributeUp: (name: string) => string; prependChild: () => LibxmljsNode; children: () => Wu.WuIterable<LibxmljsNode>; rchildren: () => Wu.WuIterable<LibxmljsNode>; elementChildren: () => Wu.WuIterable<LibxmljsElement>; elementChild: (index: number) => LibxmljsElement; firstElementChild: () => LibxmljsElement; setAttributes: (keyvalue: Object) => LibxmljsElement; countChildren: () => number; countElementChildren: () => number; clear: () => void; unwrap: () => LibxmljsElement; rewrap: (replacement: LibxmljsElement) => LibxmljsElement; attributesObj: () => any; }