Click here to Skip to main content
15,892,199 members
Home / Discussions / C#
   

C#

 
QuestionWatermarking over Video Pin
anki1237-May-09 3:19
anki1237-May-09 3:19 
AnswerRe: Watermarking over Video Pin
Rajesh R Subramanian7-May-09 3:26
professionalRajesh R Subramanian7-May-09 3:26 
QuestionRemove duplicate nodes from xml using c# Pin
ipstefan7-May-09 2:56
ipstefan7-May-09 2:56 
AnswerRe: Remove duplicate nodes from xml using c# Pin
musefan7-May-09 4:26
musefan7-May-09 4:26 
GeneralRe: Remove duplicate nodes from xml using c# Pin
ipstefan7-May-09 6:00
ipstefan7-May-09 6:00 
GeneralRe: Remove duplicate nodes from xml using c# Pin
musefan7-May-09 6:13
musefan7-May-09 6:13 
GeneralRe: Remove duplicate nodes from xml using c# Pin
ipstefan7-May-09 7:00
ipstefan7-May-09 7:00 
GeneralRe: Remove duplicate nodes from xml using c# Pin
musefan7-May-09 21:58
musefan7-May-09 21:58 
Yeah, but that is how you will need to do it. You cant just duplicates from a file, unfortunately there is not a function such as File.RemoveDuplicates();

Of course you could read a whole xml file into a datatable and then remove duplicates and re-write it back to the file but you don't want to have to load all the data into memory at once.

So the best way is to create a reader for you xml file. Then read it one entry at the time and concatenate all the values into one string.

Then you either use some sort of collection to store unique entries which you can use to check for duplicates. Or you can write straight to a new file and just check that file for duplicates each time. if a duplicate is found in which ever method you choose then you simply ignore that entry and read the next entry. Then you have either a file will unique entries, or you have a collection of unique entries which you can then write to a new file.

Fairly straight forward concept really.

Life goes very fast. Tomorrow, today is already yesterday.

GeneralRe: Remove duplicate nodes from xml using c# Pin
ipstefan8-May-09 20:51
ipstefan8-May-09 20:51 
QuestionListView - Select ListViewItem Pin
al3xutzu007-May-09 1:34
al3xutzu007-May-09 1:34 
AnswerRe: ListView - Select ListViewItem Pin
Nagy Vilmos7-May-09 1:51
professionalNagy Vilmos7-May-09 1:51 
GeneralRe: ListView - Select ListViewItem Pin
al3xutzu007-May-09 2:05
al3xutzu007-May-09 2:05 
AnswerRe: ListView - Select ListViewItem Pin
fly9047-May-09 2:01
fly9047-May-09 2:01 
AnswerRe: ListView - Select ListViewItem Pin
CPallini7-May-09 2:10
mveCPallini7-May-09 2:10 
JokeRe: ListView - Select ListViewItem Pin
Rajesh R Subramanian7-May-09 2:54
professionalRajesh R Subramanian7-May-09 2:54 
GeneralRe: ListView - Select ListViewItem Pin
Nagy Vilmos7-May-09 2:56
professionalNagy Vilmos7-May-09 2:56 
GeneralRe: ListView - Select ListViewItem Pin
Rajesh R Subramanian7-May-09 3:18
professionalRajesh R Subramanian7-May-09 3:18 
GeneralRe: ListView - Select ListViewItem Pin
Nagy Vilmos7-May-09 5:17
professionalNagy Vilmos7-May-09 5:17 
AnswerRe: ListView - Select ListViewItem Pin
Dan Neely7-May-09 3:11
Dan Neely7-May-09 3:11 
GeneralRe: ListView - Select ListViewItem Pin
al3xutzu007-May-09 6:50
al3xutzu007-May-09 6:50 
QuestionSave word in to picture. Pin
Prajeesh7-May-09 0:41
Prajeesh7-May-09 0:41 
QuestionGUID in Access 2007 ? Pin
hdv2127-May-09 0:35
hdv2127-May-09 0:35 
AnswerRe: GUID in Access 2007 ? Pin
Rajesh R Subramanian7-May-09 0:45
professionalRajesh R Subramanian7-May-09 0:45 
GeneralRe: GUID in Access 2007 ? Pin
hdv2127-May-09 1:09
hdv2127-May-09 1:09 
GeneralRe: GUID in Access 2007 ? Pin
Rajesh R Subramanian7-May-09 1:17
professionalRajesh R Subramanian7-May-09 1:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.