Fixing nesting in to_xml...