Hi, how can I retrieve information from a CDATA value on a Xml file? I’m currently iterating through the Xml content linke this (not using Fast):
var elements = root.elements();
while (elements.hasNext()) {
var element = elements.next();
trace ('element ' + element.nodeName + ' = ' + element.firstChild().nodeValue);
}
This works perfectly if the node value is not enclosed by CDATA. If CDATA is found, the nodeValue property returns an empty string and I’m not being able to find a way to get its true value (if I print element.toString() I can see the CDATA statement and the value I want inside of it).