What is DOM and XPATH? What is it used for?

Document Object Model (DOM) is a tree-structured representation of an XML document. The DOM allows applications to programmatically create and navigate through XML documents. One can also use XPATH to search through your XML documents.