typesxml
Version:
Open source XML library written in TypeScript
51 lines (50 loc) • 2.07 kB
TypeScript
/*******************************************************************************
* Copyright (c) 2023-2026 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 { CData } from "./CData.js";
import { Catalog } from "./Catalog.js";
import { ContentHandler } from "./ContentHandler.js";
import { XMLAttribute } from "./XMLAttribute.js";
import { XMLDocument } from "./XMLDocument.js";
import { XMLElement } from "./XMLElement.js";
import { DTDParser } from "./dtd/DTDParser.js";
import { Grammar } from "./grammar/Grammar.js";
export declare class DOMBuilder implements ContentHandler {
inCdData: boolean;
currentCData: CData;
document: XMLDocument | undefined;
stack: Array<XMLElement>;
catalog: Catalog | undefined;
dtdParser: DTDParser | undefined;
grammar: Grammar | undefined;
initialize(): void;
setGrammar(grammar: Grammar | undefined): void;
setCatalog(catalog: Catalog): void;
getDocument(): XMLDocument | undefined;
startDocument(): void;
endDocument(): void;
xmlDeclaration(version: string, encoding: string, standalone: string): void;
startElement(name: string, atts: XMLAttribute[]): void;
endElement(name: string): void;
getCurrentText(): string;
internalSubset(declaration: string): void;
characters(ch: string): void;
ignorableWhitespace(ch: string): void;
comment(ch: string): void;
processingInstruction(target: string, data: string): void;
parseXmlModel(text: string): Map<string, string>;
startCDATA(): void;
endCDATA(): void;
startDTD(name: string, publicId: string, systemId: string): void;
endDTD(): void;
getGrammar(): Grammar | undefined;
skippedEntity(name: string): void;
}