@manuth/woltlab-compiler
Version:
A compiler for generating WoltLab-Package `.tar` Archives and other WoltLab-Package Components
36 lines (35 loc) • 808 B
TypeScript
/**
* Provides utilities for the xml-serialization.
*/
export declare class XML {
/**
* Creates a new xml-document.
*
* @param tagName
* The name of the tag of the {@link Document.documentElement `documentElement`}.
*
* @returns
* The newly created document.
*/
static CreateDocument(tagName: string): Document;
/**
* Formats xml-code.
*
* @param xml
* The xml-code to format.
*
* @returns
* The formatted xml-code.
*/
static Format(xml: string): string;
/**
* Formats an element.
*
* @param element
* The element to format.
*
* @param indent
* The indentation of the element itself.
*/
protected static FormatElement(element: Element, indent?: string): void;
}