minimize the xml