I'm creating an xml document from a query called qRead:
I have a requirement to nest certain elements depending on the circumstance. For example, if <Text> This is the text I am writing </Text> it would remain as shown. However, if the <Display> element is before a <Text> element I will need to nest as follows:
<Text> This is the text I am writing </Text>
This is important because it prepares the system to display the text. Any ideas on how I can accomplish this? Can I put <cfif> logic within the <cfoutput> tag to catch the <Display> tag? Once I have it, how could I ensure that the next <Text> tag is nested within the <Display> tag?
Thanks for your help.
Let me know if I need to clarify.