use either a CDATA element or a linebreak tag in the file ( %# 10; -- remove the space)
with cdata -
PHP Code:
/* in xml -
<?xml version="1.0" encoding="UTF-8"?>
<root>
<node1>
<obj Src="images/p1.jpg" Url="bigimages/pic01.jpg" Title="Test">
<![CDATA[Client:<br/>Brand:<br/>Objective:]]>></obj>
</node1>
</root>
*/
// in Flash -
_xml.onLoad = function(){
rNodes = this.firstChild.childNodes;
cNodes = rNodes[0].firstChild;
sTitle = cNodes.attributes['Title'];
sDesc = cNodes.firstChild.nodeValue;
aText.html = true;
aText.htmlText = sTitle+"<br><br>";
aText.htmlText += sDesc;
}
with linebreak tag -
PHP Code:
/* in xml -
<?xml version="1.0" encoding="UTF-8"?>
<root>
<node1>
<object source="images/p1.jpg" url="bigimages/pic01.jpg" title="Test"
description="Client:&# 10;Brand:&# 10;Objective:"/>
</node1>
</root>
*/
// in Flash -
_xml.onLoad = function(){
rNodes = this.firstChild.childNodes;
cNodes = rNodes[0].firstChild.attributes;
sTitle = cNodes.title;
sDesc = cNodes.description;
aText.html = true;
aText.htmlText = sTitle+"<br><br>";
aText.htmlText += sDesc;
}