Speed up XML parsing, removement some redundant tags in generated HTML