removed minidom and fixed whitespaces in blank line