interface IXMLProp { name: string; value?: string; } interface IXMLTag { name: string; props: IXMLProp[]; children?: string | IXMLTag[]; } interface IXMLDocument { props: IXMLProp[]; root: IXMLTag; } /** XML错误 */ export declare class XMLError extends Error { readonly line: number; constructor(line: number, message: string); } export declare function parseXML(data: string): IXMLDocument; export {};