[Xerte] address CDATA?

Dave Burnett d_b_burnett at hotmail.com
Fri Aug 12 15:50:25 BST 2011




Senior moment.


What's the syntax for addressing the CDATA content so it comes out as typeof = string?




<content>



<pages>


   <page id="1">      <intro_text>

-                 <![CDATA[blah]]>

 
          </intro_text>




 
interfaceData = ifc.templateData.content[0];


debug(typeof interfaceData.pages[0].page[0].intro_text[0]);
//gives me "object"


How do I get at the string directly?
I know I could put it in a variable and re-type it, but I want to set text directly:


sometextid.setText(interfaceData.pages[0].page[0].intro_text[0]);
//displays undefined - because it's an object













 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20110812/789b4215/attachment.html>


More information about the Xerte mailing list