@wsdot/geospatial-metadata
Version:
A library for parsing and converting Geospatial metadata XML
16 lines (15 loc) • 593 B
TypeScript
/**
* Converts an XML element into an object.
* @param {Element} node - XML Element
* @returns {Object} - An object representation of the XML element.
*/
declare function toObject(node: Node): string | {
[key: string]: any;
} | null;
/**
* Converts an XML document or node into an HTML document fragment.
* @param {XMLDocument|Element} node - Either an XML document or one of its children.
* @returns {DocumentFragment} An HTML document fragment
*/
declare function toHtmlFragment(node: XMLDocument | Element): DocumentFragment;
export { toObject, toHtmlFragment };