In ColdFusion's XML DOM abstraction, there is a function to create an element, and you can set the text content of an element through a property. But I can't see how to create a snippet like this:
<a>some<b>text</b>here</a>
I would expect to create text nodes containing the strings, but I don't know how to create a text node. There doesn't seem to be a factory function for that. Is this possible using pure ColdFusion, or do I need to use Java?


<cfset xmlObj.root.childName.xmlText = '<![CDATA[<a>some<b>text</b>here</a>]]>'>. I have never used ColdFusion's XML DOM abstraction so this is just a guess. - Jules<a>and<b>should be elements containing text; I'm not trying to insert the escaped literal string "<a>". - Thom Smith