refs #6: moved all the xml building stuff to its own file in a class
refs #6: looser reqs for jinja