soundtouch-api
Version:
SoundTouch API using TypeScript
16 lines (15 loc) • 575 B
TypeScript
export declare class XMLElement {
readonly data: any;
constructor(element: any);
getAttribute(name: string): string | undefined;
getText(field?: string): string | undefined;
private static tryGetTextArray;
private static tryGetTextObject;
private static tryGetTextString;
hasAttribute(attribute: string): boolean;
hasAttributes(attributes: string[]): boolean;
hasChild(child: string): boolean;
hasChildren(children: string[]): boolean;
getChild(name: string): XMLElement | undefined;
getList(name: string): XMLElement[];
}