Use DomDocument to create the XML package

Test creating an XML package still works properly. This makes it with DomDocument which is the more 'proper' way of creating XML