# Load XML attribute using getDate

**URL:** <https://forum.kirupa.com/t/load-xml-attribute-using-getdate/274064>\
**Category:** Uncategorized\
**Created:** [October 24, 2008, 12:21pm UTC](https://forum.kirupa.com/t/load-xml-attribute-using-getdate/274064 "2008-10-24T12:21:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Asparagus](https://avatars.discourse-cdn.com/v4/letter/a/5f8ce5/32.png) [@Asparagus](https://forum.kirupa.com/u/Asparagus)\
**Post date:** [October 24, 2008, 12:21pm UTC](https://forum.kirupa.com/t/load-xml-attribute-using-getdate/274064/1 "2008-10-24T12:21:00Z")

</div>

Howdy folks,

I’ve tried, believe me I’ve tried, to find an answer, but just can’t seem to get it.

Here’s an example of my XML:

```auto
<theDate>
    <day dayNumber="22" dayText="here's some text for the 22nd" />
    <day dayNumber="23" dayText="here's some text for the 23rd" />
    <day dayNumber="24" dayText="here's some text for the 24th" />
    <day dayNumber="25" dayText="here's some text for the 25th" />
    <day dayNumber="26" dayText="here's some text for the 26th" />
</theDate>

```

Pretty much, all I’m trying to do is, using getDate, find the correct dayNumber and load that dayText into a dynamic text field.

Any help given would really make my weekend. Thanks in advance.
