I found the answer to the problem of how to parse poorly formed xml returned from SD in PAM. The answer lies in the 'convertXml' system function. While some operators include built in xml parsing, some don't which creates extra challenges.
Take for example, the createRequestReturn (below) returned by the Create Request operator (which incidentally does not have built in results parsing)
The entire Soap Response Body can be passed to the 'convertXml' function which will properly format the xml (replacing all the '<' and '>') so it can then be parsed with the 'applyXPath' operator.
See the post-execution code below which returns the extracted values.
Line 7 does the conversion, line 8 strips away the envelope, etc... and lines 9-11 return the actual values.
Note: line 8 is returning an array of attributes while 9 -11 are only returning strings due to the second flag in the applyXPath function.
Elwynn.