Click here to Skip to main content
16,004,969 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to use CStringArray in C# using p/invoke Pin
shusong17-Apr-05 16:49
shusong17-Apr-05 16:49 
GeneralRe: How to use CStringArray in C# using p/invoke Pin
Heath Stewart18-Apr-05 6:59
protectorHeath Stewart18-Apr-05 6:59 
GeneralRe: How to use CStringArray in C# using p/invoke Pin
ttcchh200812-Jun-10 3:14
ttcchh200812-Jun-10 3:14 
Questionhow to implement WHITEBOARD for many users Pin
xinxin_52515-Apr-05 23:33
xinxin_52515-Apr-05 23:33 
AnswerRe: how to implement WHITEBOARD for many users Pin
Colin Angus Mackay15-Apr-05 23:48
Colin Angus Mackay15-Apr-05 23:48 
GeneralURI format not supported Pin
Adnan Siddiqi15-Apr-05 22:29
Adnan Siddiqi15-Apr-05 22:29 
GeneralRe: URI format not supported Pin
Heath Stewart16-Apr-05 8:18
protectorHeath Stewart16-Apr-05 8:18 
GeneralRe: URI format not supported Pin
Adnan Siddiqi17-Apr-05 6:00
Adnan Siddiqi17-Apr-05 6:00 
i am trying to use following code given on MS site
http://support.microsoft.com/default.aspx?scid=kb;en-us;316063[^]


string filepath = "C:\\Customers.xml";
private void ReplaceSpecialChars(long linenumber)
        {
            System.IO.StreamReader strm;
            string strline;
            string strreplace = " ";
            string tempfile = "C:\\Temp.xml";
            try
            {
                System.IO.File.Copy(filepath,tempfile,true);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }

            StreamWriter strmwriter = new StreamWriter(filepath);



instead of giving local file path,i am giving the URL
http://127.0.0.1/file.asp?s=adnan&f=xml[^]

when someone access this URL it gives XML output,i want to parse this output and replace special characters with acceptable characters by XML,forInstance i got a character < in XML and its giving parsing error,i found above mentioned solution by MS and tried ti implement it but it`s working fine for local files but not http URLs

Thanks for your reply




MyBlogs
http://weblogs.com.pk/kadnan
GeneralRe: URI format not supported Pin
Heath Stewart17-Apr-05 16:24
protectorHeath Stewart17-Apr-05 16:24 
GeneralFun with collections... Pin
tantiboh15-Apr-05 22:13
tantiboh15-Apr-05 22:13 
GeneralRe: Fun with collections... Pin
Colin Angus Mackay15-Apr-05 23:37
Colin Angus Mackay15-Apr-05 23:37 
GeneralRe: Fun with collections... Pin
tantiboh16-Apr-05 6:29
tantiboh16-Apr-05 6:29 
GeneralVS.NET 2003 IDE Pin
pmasknguyen15-Apr-05 18:43
pmasknguyen15-Apr-05 18:43 
GeneralRe: VS.NET 2003 IDE Pin
leppie15-Apr-05 21:05
leppie15-Apr-05 21:05 
GeneralWeb Page Generator using C... Pin
ZMAN072815-Apr-05 14:16
ZMAN072815-Apr-05 14:16 
GeneralRe: Web Page Generator using C... Pin
Yulianto.15-Apr-05 16:07
Yulianto.15-Apr-05 16:07 
Questionget size of picture folder?? Pin
Anonymous15-Apr-05 12:58
Anonymous15-Apr-05 12:58 
AnswerRe: get size of picture folder?? Pin
Nicholas Cardi15-Apr-05 13:21
Nicholas Cardi15-Apr-05 13:21 
GeneralAppDomain Question Pin
cobyjone15-Apr-05 12:53
cobyjone15-Apr-05 12:53 
GeneralRe: AppDomain Question Pin
turbochimp15-Apr-05 17:55
turbochimp15-Apr-05 17:55 
GeneralRe: AppDomain Question Pin
cobyjone15-Apr-05 18:19
cobyjone15-Apr-05 18:19 
GeneralRe: AppDomain Question Pin
turbochimp15-Apr-05 19:11
turbochimp15-Apr-05 19:11 
GeneralRe: AppDomain Question Pin
leppie15-Apr-05 21:19
leppie15-Apr-05 21:19 
GeneralReflection problem Pin
Anonymous15-Apr-05 12:23
Anonymous15-Apr-05 12:23 
GeneralRe: Reflection problem Pin
leppie15-Apr-05 21:22
leppie15-Apr-05 21:22 

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.