Modified handwriting XML to make it valid XML and valid LEMS.