Link updates2

Writing links to the XML file works.