
NOTE
The word parser comes from compilers. In a compiler, a parser is the module that
reads and interprets the programming language.
In a compiler, the parser creates a parse tree, which is an in-memory representation of
the source code.
The second half of the compiler, known as the backend, uses parse trees to generate
object files (compiled modules).
Validating and Nonvalidating Parsers
XML documents can be either well-formed or valid. Well-formed documents
respect the syntactic rules. Valid documents not only respect the syntactic
rules but also conform to a structure as described in a DTD.
Likewise, there are validating and nonvalidating parsers. ...