1. A method for parsing an XML document, comprising: performing an analysis of the XML document from an XML schema associated with the XML document to extract one or more relationships between XML elements included in the XML document and to generate parselets for the XML elements, the parselets belonging to the group consisting of executable code and interpreted code; and parsing the XML elements of the XML document using the parselets and guided by relationships extracted in the analysis.