woltlab-compiler
Version:
A compiler for WoltLab-Package Archives and WoltLab-Package Components
33 lines (32 loc) • 745 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 `documentElement`.
*/
static CreateDocument(tagName: string): Document;
/**
* Formats xml-code.
*
* @param xml
* The xml-code to format.
*
* @returns
* 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;
}