I have this XML document:
If you have the exslt extensions available, you should be able to use exslt:node-set to create a variable of the contents. Try something like (untested):
...