Solved

Emergency..Please..Please help

Posted on 2008-09-29
3
198 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
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…

688 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