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
darma teja
NA
496
336.9k
add a new node to xml data
Aug 28 2013 10:57 AM
Hi All,
My xml file is like this:
<?xml version="1.0" encoding="ISO-8859-1"?>
- <note>
<step ID="1">
<to><to1>Tove<to1></to>
<from>Jani</from>
</step>
<step ID="2">
<to><to1>Tove1<to1></to>
<from>Jani1</from>
</step>
<step ID="3">
<to><to1>Tove2<to1></to>
<from>Jani2</from>
</step>
</note>
I want to add a new node (<check>ok</check>) to where ID= 2
my xpath is: note/step[ID='2']/to/
final result should be like this in xml file:
<step ID="2">
<to>
<to1>Tove1<to1>
<check>ok</check>
</to>
<from>Jani1</from>
</step>
Thanks
Darma
Reply
Answers (
11
)
C Sharp Code to output text file
how to create isolated storage in console application..?