Parses the given XML string and returns an XmlDocument instance representing the document tree.
XmlDocument
XML string to parse.
Optional
Parser options.
import { parseXml } from '@rgrove/parse-xml';let doc = parseXml('<kittens fuzzy="yes">I like fuzzy kittens.</kittens>'); Copy
import { parseXml } from '@rgrove/parse-xml';let doc = parseXml('<kittens fuzzy="yes">I like fuzzy kittens.</kittens>');
Parses the given XML string and returns an
XmlDocument
instance representing the document tree.