An XML parser is a piece of software which can do following:
Check for well-formedness
Validate the document
Allows us to read, create or modify existing XML documents
Note: Parser is piece of software provided by vendors. An XML parser is built in Java runtime from JDK 1.4 onwards