You should be able to retrieve the value you want from the form's outer XML without using code.
You can access the mso-infoPathSolution processing instruction (I assume this is the one you want) in a rule or elsewhere by using
/processing-instruction()[local-name() = 'mso-infoPathSolution']
and then use substring-before() and substring-after() to get at the portion you want.