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.7k
remove xml node
Jan 31 2018 5:22 AM
My xml file is like this:
<
root
>
<
files
>
<
filesource
uploadName
=
"20180131T083441_638_Test.doc"
originalName
=
"Test.doc"
>
c:\uploadDir\20180131T083441_638_Test.doc
</
filesource
>
<
filesource
uploadName
=
"20180131T083441_638_Test1.doc"
originalName
=
"Test1.doc"
>
c:\uploadDir\20180131T083441_638_Test1.doc
</
filesource
>
<
filesource
uploadName
=
"20180131T083441_638_Test2.doc"
originalName
=
"Test2.doc"
>
c:\uploadDir\20180131T083441_638_Test2.doc
</
filesource
>
</
files
>
</
root
>
in C#:
XmlNode filesNodes = xmlFile.findNode("/root/files"); //Here fileNodes has all 3 filessources.
List<string>
filenames
= new List<string>(); // variable
filesname.add("c:\uploadDir\20180131T083441_638_Test.doc")
filesname.add("c:\uploadDir\20180131T083441_638_Test1.doc")
whatever variable-
filenames
has I want to keep it in xmlfile and rest I want to delete it from xmlfile.
Reply
Answers (
1
)
SentiWordNet Lexicon
Opening Location Settings Page or Prompting user to Enable L