There might be an easier way to achieve this, I have a requirement to not only send an email with the report file attached at the end test run, but for the email body itself to contain a high level view of what happened in the test run, i.e

I have tried to parse the .rxlog.data file, as that seems to contain the information that I require, but it seems (to me) to be in an unusual xml format, which makes it difficult to get to the data elements I need.

For example, an 'activity' node has an opening '<activity' tag which contains all of the inner text before it gets to '>'. before the closing </activity> tag, there are other nested 'activiy' nodes. The closing </activity> tag doesn't come until much later in the data file. I have been banging my around this all day.

The code below will get to each of the 'activity' nodes and display the furthest one it gets to, but whist the code will loop and get all of the inner text and display it in the report, but I have been unable to extract a single item, i.e. 'modulename="test_fileDrop"'.