Answered
Parsing a simple XML file
Hello,
In the XML shown below, I want to get the value of the ID element that is nested under the BOX element.
The ColdFusion code I have in my sample outputs the xmltext of the RICHTEXT element.
What change would I make to output the value of the ID (such as Text 1) followed by the output of the RICHTEXT element?
I would like it to be something like
Text 1 : Sweet Wines
Text 2 : Simpy Joe's Vineyard
I really don't need to worry about any of the other elements or attributes. Those are the only ones I need. Any suggestions?
Best regards,
Kevin
In the XML shown below, I want to get the value of the ID element that is nested under the BOX element.
The ColdFusion code I have in my sample outputs the xmltext of the RICHTEXT element.
What change would I make to output the value of the ID (such as Text 1) followed by the output of the RICHTEXT element?
I would like it to be something like
Text 1 : Sweet Wines
Text 2 : Simpy Joe's Vineyard
I really don't need to worry about any of the other elements or attributes. Those are the only ones I need. Any suggestions?
Best regards,
Kevin