Solved

Emergency..Please..Please help

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
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…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

820 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