I wrote a blog entry on how to do this. It's basically around how to set rich text content into a field. This is little tricky and all of the info that you need can be found at
There is a sample there as well to help you guys.
Thanks for your help! It looks like this will do what I need. Question-is it necessary to import the XML data from somewhere else? I've cut down the script so the only part I'm using is
but I'd prefer it if I didn't have to have a text field floating around my form for the sole purpose of holding XML data. Is it possible to put the XML data in the script editor and get it to work? Is some command other than loadXML necessary? Thanks