@sysdoc/sharepoint-util
Version:
A utility library for SharePoint solutions
17 lines (16 loc) • 456 B
TypeScript
export declare class XmlFormatter {
constructor(options?: IXmlFormatterOptions);
newLine: string;
indentPattern: string;
splitNamespaces: boolean;
format(xml: string): string;
minify(xml: string, removeComments?: boolean): string;
private _getIndent;
private _stripLineBreaks;
}
export interface IXmlFormatterOptions {
preferSpaces?: boolean;
tabSize?: number;
newLine?: string;
splitNamespaces?: boolean;
}