integrate _flatten method into xml_driver
integrate _extend_padding method
separate out integration tests
remove from test_xml_driver the contents of the integration test