What tool to edit the /usr/share/mime/packages/freedesktop.org.xml file

view full story

http://unix.stackexchange.com – I edited my /usr/share/mime/packages/freedesktop.org.xml (with a text editor) to modify the file icon of application/x-7z-compressed mime type : <mime-type type="application/x-7z-compressed"> <generic-icon name="package-x-generic"/> I would like to know if there is a tool to edit this file (or to change the icon of a mime type) instead of using a text editor ? (HowTos)