Finished (most of) xml_document