A DOMParser can parse XML or HTML source stored in a string into a DOM Document.
The DOMParser is specifically used in Javascript to parse XML and HTML sources, however other languages may provide DOMParsers as well. In Javascript the DOMParser is specified in DOM Parsing and Serialization.