Use to_hash instead of to_xml for SetFolderRules.