# Displaying XML Value in Flash

**URL:** <https://forum.kirupa.com/t/displaying-xml-value-in-flash/128872>\
**Category:** Uncategorized\
**Created:** [November 17, 2004, 3:56am UTC](https://forum.kirupa.com/t/displaying-xml-value-in-flash/128872 "2004-11-17T03:56:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ChrisB](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/chrisb/32/796_2.png) [@ChrisB](https://forum.kirupa.com/u/ChrisB)\
**Post date:** [November 17, 2004, 3:56am UTC](https://forum.kirupa.com/t/displaying-xml-value-in-flash/128872/1 "2004-11-17T03:56:17Z")

</div>

I’m having trouble setting the value of a dynamic text field (elevation) equal to a value from an external XML source.

Here is a snippet of the XML source:[indent]\<?xml version=“1.0” encoding=“utf-8”?\>\<WeatherReport xmlns:xsd=“[http://www.w3.org/2001/…](http://www.w3.org/2001/)”\>  
\<station\>  
\<elevation\>6\</elevation\>  
\</station\>  
\<WeatherReport\>  
[/indent]I load the XML source into Flash using:[indent]var weatherQuery = [http://www.bgxcomponents.com/webservices…](http://www.bgxcomponents.com/webservices);var weatherXML = new XML();  
weatherXML.ignoreWhite = true;  
weatherXML.onLoad = displayResults;  
weatherXML.load(weatherQuery);  
[/indent]Then I try to set the dynamic text field “elevation” equal to the “elevation” value in the XML using the following code, but nothing happens:

[indent]function displayResults() {  
elevation.text = airportXML.WeatherReport.station.elevation.text}  
[/indent]PLEASE HELP!! THANKS!!
