# XMLConnector + DateChooser -\> DataGrid

**URL:** <https://forum.kirupa.com/t/xmlconnector-datechooser-datagrid/118578>\
**Category:** Uncategorized\
**Created:** [August 6, 2004, 9:12pm UTC](https://forum.kirupa.com/t/xmlconnector-datechooser-datagrid/118578 "2004-08-06T21:12:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MrFlashALot](https://avatars.discourse-cdn.com/v4/letter/m/cdc98d/32.png) [@MrFlashALot](https://forum.kirupa.com/u/MrFlashALot)\
**Post date:** [August 6, 2004, 9:12pm UTC](https://forum.kirupa.com/t/xmlconnector-datechooser-datagrid/118578/1 "2004-08-06T21:12:42Z")

</div>

Id like to have an XMLConnector read an xml-file (containing dates, and a “To Do” string for each date).

A DateChooser should be on stage, enabling the user to select a date, and view the textstring for that specific date pop up in a DataGrid.

Something very similar to this tutorial, in the section “Arrays and Indexing”, replacing the ComboBox with a DateChooser:

[http://www.ultrashock.com/ff.htm?http://www.ultrashock.com/tutorials/flashmx2004/databinding.php](http://www.ultrashock.com/ff.htm?http://www.ultrashock.com/tutorials/flashmx2004/databinding.php)

I tried modifying the tutorial accordingly, but without success. I guess my skills aint good enough to accomplish this yet.

Anybody here understands the ins and outs of this type of databinding?

---

<div class="post-metadata">

**Author:** ![lastchance](https://avatars.discourse-cdn.com/v4/letter/l/f04885/32.png) [@lastchance](https://forum.kirupa.com/u/lastchance)\
**Post date:** [August 6, 2004, 9:59pm UTC](https://forum.kirupa.com/t/xmlconnector-datechooser-datagrid/118578/2 "2004-08-06T21:59:51Z")

</div>

well, i rekon i can help a little. I would set up the xml document like this;  
\<Datapack\>  
\<Data\>  
\<Date\>some date here\</Date\>  
\<Todo\>some data here\</Todo\>  
\</Data\>  
\<Data\>  
\<Date\>some date here\</Date\>  
\<Todo\>some data here\</Todo\>  
\</Data\>  
\</Datapack\>

This script is self explanatory, it stores all the information you have in a neat, easyily accessible format.

Now,the way in which i would retrieve this data is use the xml class.

var myXML:XML = new XML();  
myXML.load([http://yourdomain.com/datapack.xml](http://yourdomain.com/datapack.xml));

i feel i can help more like handling the data and using it but first let me know if this is at all relavent to you 😉

---

<div class="post-metadata">

**Author:** ![MrFlashALot](https://avatars.discourse-cdn.com/v4/letter/m/cdc98d/32.png) [@MrFlashALot](https://forum.kirupa.com/u/MrFlashALot)\
**Post date:** [August 8, 2004, 6:08pm UTC](https://forum.kirupa.com/t/xmlconnector-datechooser-datagrid/118578/3 "2004-08-08T18:08:19Z")

</div>

First of all, the xml-structure is nice and tidy, so Ill use it 🙂

But Im using the xmlconnector component, which means you dont have to load the file manually with the code you wrote. The component handles it automatically, so its basically just a matter of getting the dataconnections between the components XMLConnector, DateChooser, and DataGrid to be configured correctly. Thats where the problem lies.

Thanks for the reply, though 🙂
