video-ad-sdk
Version:
VAST/VPAID SDK that allows video ads to be played on top of any player
12 lines (11 loc) • 482 B
TypeScript
import type { ParsedXML } from '../types';
import { get, getAll, getFirstChild, getText, getAttributes, getAttribute } from './helpers/xmlSelectors';
/**
* Parses the passed xml text.
*
* @throws if there is an error parsing the xml.
* @param xmlText XML text to be parsed.
* @returns Returns the parsed xml document as a js object.
*/
export declare const parseXml: (xmlText: string) => ParsedXML;
export { get, getAll, getFirstChild, getText, getAttributes, getAttribute };