1. A computer implemented method for generating a statistical tree representing an extensible markup language Schema (XSD) comprising: prioritizing components of said XSD according to predefined rules; creating a root node representing said XSD; generating pairs of child nodes from said root node, each pair comprising at least one genuine node, and each pair of generated child nodes being appended to a parent node which is a genuine node; and allocating at least one genuine node to a corresponding component of said XSD, said allocation being based on the prioritization of said component.