UNPKG

typesxml

Version:

Open source XML library written in TypeScript

37 lines (36 loc) 1.55 kB
/******************************************************************************* * Copyright (c) 2023 - 2024 Maxprograms. * * This program and the accompanying materials * are made available under the terms of the Eclipse License 1.0 * which accompanies this distribution, and is available at * https://www.eclipse.org/org/documents/epl-v10.html * * Contributors: * Maxprograms - initial API and implementation *******************************************************************************/ import { ProcessingInstruction } from "./ProcessingInstruction"; import { TextNode } from "./TextNode"; import { XMLComment } from "./XMLComment"; import { XMLDeclaration } from "./XMLDeclaration"; import { XMLDocumentType } from "./XMLDocumentType"; import { XMLElement } from "./XMLElement"; import { XMLNode } from "./XMLNode"; export declare class XMLDocument implements XMLNode { private content; documentType: XMLDocumentType; constructor(); contentIterator(): IterableIterator<XMLNode>; setRoot(root: XMLElement): void; getRoot(): XMLElement | undefined; setDocumentType(documentType: XMLDocumentType): void; getDocumentType(): XMLDocumentType | undefined; setXmlDeclaration(declaration: XMLDeclaration): void; getXmlDeclaration(): XMLDeclaration | undefined; addComment(comment: XMLComment): void; addProcessingInstruction(pi: ProcessingInstruction): void; addTextNode(node: TextNode): void; getNodeType(): number; toString(): string; equals(node: XMLNode): boolean; }