Solved

Emergency..Please..Please help

Posted on 2008-09-29
3
192 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

831 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