Replace the part of XML file

Dec 14, 2010 15:30

Three different versions of the program created:

v.1. Using XMLTextReader/XMLTextWriter

-open given file for read

-search “xmlns=” replace by “aaans=”

- write changes to the temp file

- remove source file, move output

Time of processing 951mb file:  0:03:05:17

v.2. Using Filestream /StreamReader/StreamWriter

-open given file for ( Read more... )

programming, xml, streamreader, streamwriter, c#, code, ssis

Leave a comment

Comments 1

frostik85 December 14 2010, 19:14:48 UTC
Some people, when confronted with a problem, think "I know, I’ll use regular expressions." Now they have two problems.

;)

Reply


Leave a comment

Up