UNPKG

typesxml

Version:

Open source XML library written in TypeScript

41 lines (40 loc) 1.69 kB
/******************************************************************************* * Copyright (c) 2023-2026 Maxprograms. * * This program and the accompanying materials * are made available under the terms of the Eclipse Public 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 { Catalog } from '../Catalog.js'; import { ContentHandler } from '../ContentHandler.js'; import { Grammar } from '../grammar/Grammar.js'; import { XMLAttribute } from '../XMLAttribute.js'; export declare class RootAttributeHandler implements ContentHandler { private grammar; private rootSeen; hasSchemaRef(): boolean; initialize(): void; setCatalog(_catalog: Catalog): void; startDocument(): void; endDocument(): void; xmlDeclaration(_version: string, _encoding: string, _standalone: string | undefined): void; startElement(_name: string, _atts: Array<XMLAttribute>): void; endElement(_name: string): void; internalSubset(_declaration: string): void; characters(_ch: string): void; ignorableWhitespace(_ch: string): void; comment(_ch: string): void; processingInstruction(_target: string, _data: string): void; startCDATA(): void; endCDATA(): void; startDTD(_name: string, _publicId: string, _systemId: string): void; endDTD(): void; skippedEntity(_name: string): void; getCurrentText(): string; getGrammar(): Grammar | undefined; setGrammar(grammar: Grammar | undefined): void; }