1. A method of generating a parser for parsing a marked up document, the method comprising: scanning a sample marked up document; extracting a template of the sample marked up document, wherein the template comprises elements of the structural markup of the sample document with the data contents of the elements removed; and generating a parser for parsing a marked up document, wherein the parser is generated in the form of code based on the extracted template in such a manner that the parser is adapted to extract any elements and associated data content of the marked up document to be parsed corresponding to the elements of the extracted template.