fix xml-format when using with multiple packages