trackswap
Version:
A powerful and flexible GPX parser and encoder library for Node.js and TypeScript. TrackSwap provides comprehensive support for GPX 1.1 format with advanced features like plugin system, middleware support, and optimized performance.
18 lines (17 loc) • 585 B
TypeScript
import { Token } from "../types.js";
export declare class XMLUtils {
static tokenizeXML(xmlContent: string): Token[];
static compressXML(xmlContent: string): string;
static formatXML(xmlContent: string, indentSize?: number): string;
static validateXML(xmlContent: string): {
isValid: boolean;
error?: string;
};
static extractXMLDeclaration(xmlContent: string): {
version?: string;
encoding?: string;
standalone?: string;
};
static escapeXML(text: string): string;
static unescapeXML(text: string): string;
}