1. A method for parsing a document, the document being in an Extensible Markup Language (XML) format, the method comprising: parsing the XML document via a parser; validating the XML document via a validation engine operating on a computer, the validation engine driving a tokenizer to produce one token at a time from the XML document, the driving being based on a recursive-decent and code driven method, and the validating being an integral part of the parsing.