added xml parser and doc builder