# \[ActionScript/XML\] Help needed!

**URL:** <https://forum.kirupa.com/t/actionscript-xml-help-needed/213780>\
**Category:** flash\
**Created:** [January 23, 2007, 5:25am UTC](https://forum.kirupa.com/t/actionscript-xml-help-needed/213780 "2007-01-23T05:25:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rokryan](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/rokryan/32/3207_2.png) [@rokryan](https://forum.kirupa.com/u/rokryan)\
**Post date:** [January 23, 2007, 5:25am UTC](https://forum.kirupa.com/t/actionscript-xml-help-needed/213780/1 "2007-01-23T05:25:22Z")

</div>

Grrr, spent all morning trying to intergrate a xml feed into the countdown clock from the tutorial offered on this site.

[FONT=Fixedsys]var eventDate;  
var race\_time;  
var race\_location;  
var raceYear = race\_year;  
var raceMonth = race\_month;  
var raceDay = race\_day;  
var raceHour = race\_hour;

var clock\_xml = new XML();  
clock\_xml.ignoreWhite = true;  
clock\_xml.onLoad = function(success) {  
if (success) {  
race\_time = clock\_xml.lastChild.lastChild;  
race\_location = clock\_xml.firstChild.firstChild.firstChild.firstChild;  
race\_year = race\_time.childNodes[1].lastChild;  
race\_month = race\_time.childNodes[2].lastChild;  
race\_day = race\_time.childNodes[3].lastChild;  
race\_hour = race\_time.childNodes[4].lastChild;  
}  
};[/FONT]  
[FONT=Fixedsys]  
clock\_xml.load(“clock.xml”);  
eventDate = new Date([COLOR=Red]parseInt(raceYear), parseInt(raceMonth), parseInt(raceDay)[/COLOR]);

[/FONT]The problem seems stem from the XML data coming in as a string which then needs to be converted into a integer for the new Date(); object.  
Can anyone please help?
