Xml documents are now properly built up rather than just being strings.