I have a flow where I make an HTTP request for xml data. I'm using xpath to parse it but it's not handling CDATA properly. It's showing me <![CDATA[California]]> as the output instead of just California.
This is my input: xpath(xml(item()),'string(/Dinger/StateName)')
Everything is right in my outputs for all elements except this. Is there something I can do differently in my xpath expressions for the elements with CDATA? If not, how do I handle transformation in Flow to remove the text and characters that I don't want?