refs #2: Passing tests, all done now.
refs #2: Using element tree to build all the things.
refs #2: Complex test case.