sf-package-list
Version:
Convert Salesforce package.xml manifests to and from plain-text list format.
11 lines (10 loc) • 413 B
TypeScript
export type XmlNode = {
tagName: string;
children: Array<XmlNode | string>;
};
/**
* Minimal recursive-descent XML parser scoped to Salesforce package.xml manifests:
* elements, attributes (skipped -- unused by callers), text, entities, comments,
* and the leading <?xml ?> declaration. No DTD/CDATA support since manifests don't use them.
*/
export declare function parseXml(xml: string): XmlNode[];