TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
mohammed shamsheer
NA
394
144.3k
Object reference not set to an instance of an object.
Jul 1 2013 4:45 AM
Object reference not set to an instance of an object. when i try to update my xml document
my xml files is :
<?xml version="1.0" encoding="utf-8"?>
<News12>
<Category id="1">
<News1>
<News>
My name is mohammed shamsheer.I am working in poloysys
</News>
</News1>
</Category>
</News12>
code behind :
protected void btnUpdate_Click(object sender, EventArgs e)
{
XmlDocument UpdateXmlDocument = new XmlDocument();
UpdateXmlDocument.Load(Server.MapPath("XMLFile2.xml"));
XmlNodeList UpdateNodeList;
UpdateNodeList = UpdateXmlDocument.SelectNodes("/News12/Category[@id='1']");
UpdateNodeList[0].ChildNodes[2].InnerText = "Asp.net";
}
}
Reply
Answers (
4
)
how to implemnet scrolling news from xml in to asp.net page
Remote Coding in DotNet