Rendering xml as html in text field

Hi,

I have a simple xml file with this structure.

<?xml version=“1.0” encoding=“iso-8859-1”?>
<content>
<page name=“Page Name”>
<text>
<p>This is line 1…</p>
<p>This is line 2…</p>
<p>This is line 3…etc</p>
</text>
</page>
</content>

I can update a text field to show the page name attribute but I cannot get another text field to show the text content rendered as html.

The ‘render as html’ option is selected but the <p> tags don’t render as expected.

What am I doing wrong?? I’m thinking it’s something simple!

T

I got same problem the text from CDATA rendered like this:

<b>hello</b><br>help.

in my textFieldMC.field.htmlText

and redered like this:

<b>hello</b><br>help.

in my textFieldMC.field.text

and redered prefectly fine if i’m doing this:

textFieldMC.field.html="this is <b>bold</b><br>this is <i>italic</i>";

why is that?? And also what’s up with the bracketed number behind childNodes?? I mean this:

xmlObj.firstChild.childNodes[1].childNode.nodeValue

Thanks in advance

I got same problem the text from CDATA rendered like this:

<b>hello</b><br>help.

in my textFieldMC.field.htmlText

and redered like this:

&lt;b&gt;hello&lt;/b&gt;&lt;br&gt;help.

in my textFieldMC.field.text

and redered prefectly fine if i’m doing this:

textFieldMC.field.html="this is <b>bold</b><br>this is <i>italic</i>";

why is that?? And also what’s up with the bracketed number behind childNodes?? I mean this:

xmlObj.firstChild.childNodes[1].childNode.nodeValue

Thanks in advance