Click here to Skip to main content
15,891,513 members
Home / Discussions / C#
   

C#

 
QuestionPulling info from arrays Pin
JMOdom2-Apr-07 8:57
JMOdom2-Apr-07 8:57 
AnswerRe: Pulling info from arrays [modified] Pin
Christian Graus2-Apr-07 10:11
protectorChristian Graus2-Apr-07 10:11 
QuestionHow to remove comment from XML string Pin
AndrusM2-Apr-07 8:05
AndrusM2-Apr-07 8:05 
AnswerRe: How to remove comment from XML string Pin
Not Active2-Apr-07 8:26
mentorNot Active2-Apr-07 8:26 
GeneralRe: How to remove comment from XML string Pin
AndrusM2-Apr-07 9:47
AndrusM2-Apr-07 9:47 
AnswerRe: How to remove comment from XML string Pin
blackjack21502-Apr-07 21:09
blackjack21502-Apr-07 21:09 
GeneralRe: How to remove comment from XML string Pin
AndrusM3-Apr-07 8:49
AndrusM3-Apr-07 8:49 
GeneralRe: How to remove comment from XML string Pin
blackjack21503-Apr-07 21:00
blackjack21503-Apr-07 21:00 
Try this:

StreamReader sr = new StreamReader("myOldFile.xml");<br />
            StreamWriter sw = new StreamWriter("myNewFile.xml");<br />
<br />
            string theText = sr.ReadToEnd();<br />
            sr.Close();<br />
<br />
            theText = theText.Replace("<!--", "");<br />
            theText = theText.Replace("-->", "");<br />
<br />
            sw.Write(theText);<br />
            sw.Close();


Have a nice day!
GeneralRe: How to remove comment from XML string Pin
AndrusM4-Apr-07 1:03
AndrusM4-Apr-07 1:03 
GeneralRe: How to remove comment from XML string Pin
AndrusM4-Apr-07 1:13
AndrusM4-Apr-07 1:13 
QuestionFilter a Large Datagrid Pin
Brad Wick2-Apr-07 7:50
Brad Wick2-Apr-07 7:50 
AnswerRe: Filter a Large Datagrid Pin
kubben2-Apr-07 8:30
kubben2-Apr-07 8:30 
GeneralRe: Filter a Large Datagrid Pin
Brad Wick2-Apr-07 12:35
Brad Wick2-Apr-07 12:35 
QuestionDeployment Visual Studio 2005 Error Pin
laura13162-Apr-07 7:30
laura13162-Apr-07 7:30 
Questiontesting of Stored Procedure Pin
sreecahitu2-Apr-07 6:53
sreecahitu2-Apr-07 6:53 
AnswerRe: testing of Stored Procedure Pin
Colin Angus Mackay2-Apr-07 7:15
Colin Angus Mackay2-Apr-07 7:15 
QuestionHow to draw a Horizantal line in WindowsApp Pin
pashitech2-Apr-07 6:23
pashitech2-Apr-07 6:23 
AnswerRe: How to draw a Horizantal line in WindowsApp Pin
maryamf2-Apr-07 9:06
maryamf2-Apr-07 9:06 
QuestionComboBox and BindingSource Pin
mihksoft2-Apr-07 6:15
mihksoft2-Apr-07 6:15 
QuestionLimit number of copies of application to 1 Pin
polishprogrammer2-Apr-07 6:11
polishprogrammer2-Apr-07 6:11 
AnswerRe: Limit number of copies of application to 1 Pin
pbraun2-Apr-07 6:52
pbraun2-Apr-07 6:52 
QuestionHow to add a LabelCotrol to A DATAGRIDVIEW Pin
pashitech2-Apr-07 5:59
pashitech2-Apr-07 5:59 
QuestionMdi menus Pin
netJP12L2-Apr-07 5:32
netJP12L2-Apr-07 5:32 
AnswerRe: Mdi menus Pin
Stefan Troschuetz2-Apr-07 8:28
Stefan Troschuetz2-Apr-07 8:28 
Questionmanipulating request headers for a service call Pin
jhinze2-Apr-07 5:15
jhinze2-Apr-07 5:15 

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.