Tree builder using CXML DOM.