Getting OS X to use the application you want to open a document type

I had a little problem where Chrome was not the default viewer for XML documents on my Mac. Using the "Open With..." dialog to select the application to use with the document did not stick. In the end I used the duti utility, eg

duti -s com.google.chrome text/xml all
and this seems to have worked. Will see if it continues to work after a reboot.

The other problem is what are the applications, UTIs, or MIME types that can be used? The command

/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -dump | grep ...
can be used to investigate. Further, I found a reference to AllApplications which will also help.