Removed unecessary code when setting all_ns_dict in to_xml(). Whitespace changes