XML almost done. Ridiculous error where Res objects disappear, thus XML doesn't save properly. Also need to format XML.