<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'><div dir='ltr'>
<br><BR>:-) Yes I know I can recast it.<BR><br><BR>But how do I get directly to the string within the CDATA tags?<BR><br><BR>debug(
<span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'">interfaceData.pages[0].page[0].intro_text[0]) // shows "blah" in the debug window</span>
<BR>debug(typeof <span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'">interfaceData.pages[0].page[0].intro_text[0]) // reports "object"</span>
<BR><br><BR><br><BR>
<span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'">sometextid.setText(interfaceData.pages[0].page[0].intro_text[0]);</span>
<BR><br><BR>Says undefined on screen  (because it's reporting as an object?)<BR><br><BR><br><BR><br><BR><br><BR><br><BR><br><BR>From: Julian.Tenney@nottingham.ac.uk<br><BR>To: xerte@lists.nottingham.ac.uk<br>Date: Mon, 15 Aug 2011 11:32:50 +0100<br>Subject: [Xerte] Re: address CDATA?<br><br>

<style>
.ExternalClass p.ecxMsoNormal, .ExternalClass li.ecxMsoNormal, .ExternalClass div.ecxMsoNormal
{margin-bottom:.0001pt;font-size:12.0pt;font-family:'Times New Roman','serif';}
.ExternalClass a:link, .ExternalClass span.ecxMsoHyperlink
{color:blue;text-decoration:underline;}
.ExternalClass a:visited, .ExternalClass span.ecxMsoHyperlinkFollowed
{color:purple;text-decoration:underline;}
.ExternalClass p
{margin-right:0cm;margin-left:0cm;font-size:12.0pt;font-family:'Times New Roman','serif';}
.ExternalClass span.ecxm
{;}
.ExternalClass span.ecxt
{;}
.ExternalClass span.ecxb
{;}
.ExternalClass span.ecxEmailStyle21
{font-family:'Calibri','sans-serif';color:#1F497D;}
.ExternalClass .ecxMsoChpDefault
{font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;}
.ExternalClass div.ecxWordSection1
{page:WordSection1;}

</style><div class="ecxWordSection1"><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:'Calibri','sans-serif';color:#1F497D">String(your[0].expression[0].here);</span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:'Calibri','sans-serif';color:#1F497D"> </span></p><div><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm"><p class="ecxMsoNormal" style="margin-left:36.0pt"><b><span lang="EN-US" style="font-size:10.0pt;font-family:'Tahoma','sans-serif'">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:'Tahoma','sans-serif'"> xerte-bounces@lists.nottingham.ac.uk [mailto:xerte-bounces@lists.nottingham.ac.uk] <b>On Behalf Of </b>Dave Burnett<br><b>Sent:</b> 12 August 2011 15:50<br><b>To:</b> Xerte list<br><b>Subject:</b> [Xerte] address CDATA?</span></p></div></div><p class="ecxMsoNormal" style="margin-left:36.0pt"> </p><div><p class="ecxMsoNormal" style="margin-left:36.0pt"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'"><br><br>Senior moment.<br><br><br>What's the syntax for addressing the CDATA content so it comes out as typeof = string?<br><br><br><br><br><span class="ecxm"><</span><span class="ecxt">content</span><span class="ecxm">></span></span></p><div><div><div><div style="margin-left:12.0pt"><p class="ecxMsoNormal" style="margin-left:36.0pt;text-indent:-24.0pt"><span class="ecxm"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'"><</span></span><span class="ecxt"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'">pages</span></span><span class="ecxm"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'">></span></span></p></div><div><div><div style="margin-left:12.0pt"><p class="ecxMsoNormal" style="margin-left:36.0pt;text-indent:-24.0pt"><span class="ecxm"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'">   <</span></span><span class="ecxt"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'">page id</span></span><span class="ecxm"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'">="</span></span><b><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'">1</span></b><span class="ecxm"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'">"></span></span></p></div><div style="margin-left:12.0pt"><p class="ecxMsoNormal" style="margin-left:36.0pt;text-indent:-24.0pt"><span class="ecxm"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'">      <</span></span><span class="ecxt"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'">intro_text</span></span><span class="ecxm"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'">></span></span></p></div><div><div><div><div><p class="ecxMsoNormal" style="margin-left:36.0pt"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'">- <span class="ecxm">                <![CDATA[blah]]></span> </span></p></div><div><p class="ecxMsoNormal" style="margin-left:36.0pt"><span class="b"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'"> </span></span><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'"> <span class="ecxm">        </</span><span class="ecxt">intro_text</span><span class="ecxm">></span></span></p></div></div></div></div></div></div></div></div></div><p class="ecxMsoNormal" style="margin-right:0cm;margin-bottom:12.0pt;margin-left:36.0pt"><span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'"><br><br><br><br><br> <br>interfaceData = ifc.templateData.content[0];<br><br><br>debug(typeof interfaceData.pages[0].page[0].intro_text[0]);<br>//gives me "object"<br><br><br>How do I get at the string directly?<br>I know I could put it in a variable and re-type it, but I want to set text directly:<br><br><br>sometextid.setText(interfaceData.pages[0].page[0].intro_text[0]);<br>//displays undefined - because it's an object<br><br><br><br><br><br><br><br><br><br><br><br><br></span></p></div></div><br>

This message and any attachment are intended solely for the addressee and may 
contain confidential information. If you have received this message in error, 
please send it back to me, and immediately delete it.   Please do not use, 
copy or disclose the information contained in this message or in any attachment.  
Any views or opinions expressed by the author of this email do not necessarily 
reflect the views of the University of Nottingham.
<BR>

This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.
<BR>
<br>_______________________________________________
Xerte mailing list
Xerte@lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte

This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.

This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.                                         </div></body>
</html>