modify_xml_document() now returns a list containing field structures