Hi,
Apologies if this has been answered before, but I've searched the forum and can't find an answer that seems to work. I'm pretty new to displaying xml content in Flash, so I may be missing some pretty basic stuff.

I'm reading a remote xml file and using an external css file to style it; all of that is working fine. Unfortunately, the xml data is used to create hotspots on a map as well as display the text on a text page, so there are nodes that are only used for the map (i.e., latitude and longitude) that I don't want to display on the text page. But I can't figure out how to get tell the actionscript that loads the xml to ignore some of the nodes.

It has occurred to me that the xml I'm calling may not be formatted correctly for this, but I don't have access to that file, so I have to make do with it as is.

Anyway, here's the code I'm using to display the xml as text:
(i've replaced the url to the xml because it's my client's site)

//init TextArea component
myText.html = true;
myText.wordWrap = true;
myText.multiline = true;
myText.label.condenseWhite = false;
contentStyle = new TextField.StyleSheet();
contentStyle.load("ksm.css");
myText.styleSheet = contentStyle;
//load in XML
ksmContent = new XML();
ksmContent.ignoreWhite = false;
ksmContent.load("http://www.site.com/name.xml");
ksmContent.onLoad = function(success) {
if (success) {
myText.text = ksmContent;
}
};

and for completeness sake, here's a sample of the xml in question:

<events>
<event>
<id>24</id>
<timestamp>1156996800</timestamp>
<latitude>-29.85</latitude>
<longitude>31.0167</longitude>
<title><![CDATA[Rise of Super Tuberculosis]]></title>
<image/>
<contenttext><![CDATA[KWAZULU-NATAL, South Africa, Aug. 31, 2006 - A new strain of extensively drug resistant tuberculosis (XDR-TB) has been reported in KwaZulu-Natal. This &quot;super tuberculosis&quot; is resistant to all the first and second line TB drugs, making it virtually untreatable. Additionally, this strain seems to kill particularly rapidly; many patients dying within a month of diagnosis.<br /><br />XDR-TB develops when patients do not take antibiotics properly and can be spread through sneezing and coughing. According to a survey by the CDC and WHO, approximately 2 percent of all TB isolates examined between 2000 and 2004 were XDR-TB.]]></contenttext>
</event>
<event>

The only nodes I want to display are <title> and <contenttext>.

Oh, and while we're at it, the html tags in the <contenttext> node aren't working properly...

If anyone can help... tia!!