Emergency..Please..Please help

I've create the follow the coding to add xml nodes...I need to add a attribute to ITEM element ...how can i do that...after appendchildelement...please let me know asap.

 xmlNICalendar = xmlNavCalendar.Select("/Page/Contents/Content[@type='Calendar']/CalendarView/Calendar/Year/Month/Week/Day")

 While (xmlNICalendar.MoveNext())

 If cGetStartDate = (xmlNICalendar.Current.GetAttribute("dateid", "")) Then
     
  xmlNICalendar.Current.AppendChildElement("", "Item", "", "")

                                   
End If
 End While
s_maha1978Asked:
Who is Participating?
 
Shanmuga SundaramConnect With a Mentor Director of Software EngineeringCommented:
you can use the create attribute method. please check here http://articles.techrepublic.com.com/5100-10878_11-1044759.html
0
 
SameerJagdaleCommented:

checkout createattribute method.

xDom = New System.Xml.XmlDocument() ...this would be your xmldocument..
xDom.CreateAttribute("")
0
 
SameerJagdaleCommented:
s_maha1978,
I did said the createattribute method with some sample code :-(
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.