Finish removing any D1 code.

All tests pass now. Uses the Tango XML parser.