Solved

Emergency..Please..Please help

Posted on 2008-09-29
3
191 Views
Last Modified: 2010-04-30
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
0
Comment
Question by:s_maha1978
  • 2
3 Comments
 
LVL 13

Expert Comment

by:SameerJagdale
ID: 22596214

checkout createattribute method.

xDom = New System.Xml.XmlDocument() ...this would be your xmldocument..
xDom.CreateAttribute("")
0
 
LVL 17

Accepted Solution

by:
Shanmuga Sundaram earned 500 total points
ID: 22596225
you can use the create attribute method. please check here http://articles.techrepublic.com.com/5100-10878_11-1044759.html
0
 
LVL 13

Expert Comment

by:SameerJagdale
ID: 22631313
s_maha1978,
I did said the createattribute method with some sample code :-(
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now