The MKSAPIVIEWER command-line utility may be your best bet. It's a wrapper for the JAVA API that accepts most (perhaps all in 10.9) IM and SI commands and outputs them as XML.
mksapiview --iplocal --xml im issues --query='query name'
As was previously mentioned, the --xmlapi option will not be supported in the near future. It wasn't correct in many cases anyway. the MKSAPIVIEWER should have a longer life and doesn't require any additional coding.