I had an existing XML document that is bout to an html table, and once a month the document is replaced on site server. XML file contains dated events, and I need to remove all events that have dates older then current date when page is loading and retrieving data from xml document.
Here is an sample of the xml data.
<root>
<event>
<date>02/01/2015</date>
<name>Mosaic Singers in Concert</name>
<organization>Cathedral of the Most Blessed Sacrament, 9844 Woodward Avenue, Detroit</organization>
<time>4:00 p.m.</time>
<description>An afternoon concert of diverse choral music. The young and energetic Mosaic Singers, just back from an international tour, won a gold medal and two silver medals at the 2014 World Choir Games in Latvia.
Doors open 45 minutes before each concert. Free, secure parking is adjacent to the Cathedral. • http://ift.tt/1LXPmAK Tickets at: http://ift.tt/1EAws0G • $10 general admission</description>
<phone/>
<category>Arts & Entertainment</category>
<highlightedevent>Yes</highlightedevent>
<address1/>
<address2/>
<city/>
<zip/>
<county/>
</event>
<event>
<date>02/14/2015</date>
<name>Nancy Honeytree in Concert</name>
<organization>Faith Christian, 25201 W. Outer Drive, Melvindale</organization>
<time>6:00 p.m.</time>
<description>A romantic night and time of refreshing. Enjoy a wonderful dinner by candlelight and concert from this musical legend. • http://ift.tt/1LXPmAN; 313.928.8305 • $25 per couple</description>
<phone/>
<category>Special Events</category>
<highlightedevent>Yes</highlightedevent>
<address1/>
<address2/>
<city/>
<zip/>
<county/>
</event>
</root>
No comments:
Post a Comment