DotNetGnat
Programmer
Guys,
Need some help on parsing xml file.
Below is the line I have in my code:
XmlNodeList xmlnode = xmldoc.GetElementsByTagName("G_NEW_DATE");
and the outerxml that I get looks like below for xmlnode.OuterXml
inside the loop
for (int i = 0; i < xmlnode.Count; i++){
}
I need to check if the NEW_DATE is today and grab the appropriate 1month or 2 month or 3 month value into a variable based on the input month number.
Any suggestions...
Thanks
-DNG
Need some help on parsing xml file.
Below is the line I have in my code:
XmlNodeList xmlnode = xmldoc.GetElementsByTagName("G_NEW_DATE");
and the outerxml that I get looks like below for xmlnode.OuterXml
Code:
<G_NEW_DATE>
<DAY>THURSDAY</DAY>
<LIST_G_CAT>
<G_CAT>
<1MONTH>100</1MONTH>
<2MONTH>200</2MONTH>
<3MONTH>200</3MONTH>
</G_CAT>
</LIST_G_CAT>
<NEW_DATE>04-01-2010</NEW_DATE>
</G_NEW_DATE>
inside the loop
for (int i = 0; i < xmlnode.Count; i++){
}
I need to check if the NEW_DATE is today and grab the appropriate 1month or 2 month or 3 month value into a variable based on the input month number.
Any suggestions...
Thanks
-DNG