Sujit Sahoo

Sujit Sahoo

  • NA
  • 346
  • 37.5k

how to set holidays in calendar control from xml file

Mar 26 2019 5:06 AM
I have an XML file containing some holiday list.
 
<?xml version="1.0" encoding="utf-8" ?>
<Holidays>
<Holiday>
<Date>01/01/2019</Date>
<Occasion>New Year Day</Occasion>
</Holiday>
<Holiday>
<Date>02/26/2019</Date>
<Occasion>Republic Day</Occasion>
</Holiday>
<Holiday>
<Date>08/15/2019</Date>
<Occasion>IndependenceDay</Occasion>
</Holiday>
 
</Holidays>
 
I have a Calendar control, so I want to display the holiday date and occasion in my calendar control.
 
How to do this?
Any suggestion.
Thank You. 
 

Answers (9)