Click here to Skip to main content
15,923,689 members
Home / Discussions / C#
   

C#

 
QuestionSerialPort class and opening ports Pin
Member 76109415-Jun-06 6:07
Member 76109415-Jun-06 6:07 
Questionpreventing header in xml file Pin
Yustme15-Jun-06 6:01
Yustme15-Jun-06 6:01 
AnswerRe: preventing header in xml file Pin
Dustin Metzgar15-Jun-06 6:19
Dustin Metzgar15-Jun-06 6:19 
GeneralRe: preventing header in xml file Pin
Dustin Metzgar15-Jun-06 6:34
Dustin Metzgar15-Jun-06 6:34 
Actually, you can also set OmitXmlDeclaration to true. Here's a code snippet to show you how it works with an XmlSerializer (which doesn't let you set the conformance level to Fragment).

XmlSerializer xs = new XmlSerializer(obj.GetType());
StringBuilder sb = new StringBuilder();
XmlWriterSettings xws = new XmlWriterSettings();
xws.Indent = true;
xws.IndentChars = "   ";
xws.OmitXmlDeclaration = true;
XmlWriter xw = XmlWriter.Create(new StringWriter(sb), xws);
xs.Serialize(xw, obj);
return sb.ToString();




Logifusion[^]
GeneralRe: preventing header in xml file Pin
Yustme15-Jun-06 6:55
Yustme15-Jun-06 6:55 
GeneralRe: preventing header in xml file Pin
Dustin Metzgar15-Jun-06 6:59
Dustin Metzgar15-Jun-06 6:59 
GeneralRe: preventing header in xml file Pin
Yustme15-Jun-06 8:10
Yustme15-Jun-06 8:10 
GeneralRe: preventing header in xml file Pin
Dustin Metzgar15-Jun-06 8:28
Dustin Metzgar15-Jun-06 8:28 
GeneralRe: preventing header in xml file Pin
Yustme15-Jun-06 8:43
Yustme15-Jun-06 8:43 
GeneralRe: preventing header in xml file Pin
Dustin Metzgar15-Jun-06 8:59
Dustin Metzgar15-Jun-06 8:59 
GeneralRe: preventing header in xml file Pin
Yustme15-Jun-06 9:17
Yustme15-Jun-06 9:17 
QuestionEnumerating All computers on the Lan Pin
wasife15-Jun-06 5:40
wasife15-Jun-06 5:40 
AnswerRe: Enumerating All computers on the Lan Pin
Josh Smith15-Jun-06 5:47
Josh Smith15-Jun-06 5:47 
AnswerRe: Enumerating All computers on the Lan Pin
Alexander Wiseman15-Jun-06 6:11
Alexander Wiseman15-Jun-06 6:11 
GeneralRe: Enumerating All computers on the Lan Pin
Josh Smith15-Jun-06 7:58
Josh Smith15-Jun-06 7:58 
GeneralRe: Enumerating All computers on the Lan Pin
Alexander Wiseman15-Jun-06 8:50
Alexander Wiseman15-Jun-06 8:50 
QuestionUsing ifdef DEBUG Pin
MrEyes15-Jun-06 5:35
MrEyes15-Jun-06 5:35 
AnswerRe: Using ifdef DEBUG Pin
Josh Smith15-Jun-06 5:37
Josh Smith15-Jun-06 5:37 
GeneralRe: Using ifdef DEBUG [modified] Pin
MrEyes15-Jun-06 5:39
MrEyes15-Jun-06 5:39 
GeneralRe: Using ifdef DEBUG Pin
Alexander Wiseman15-Jun-06 5:41
Alexander Wiseman15-Jun-06 5:41 
GeneralRe: Using ifdef DEBUG Pin
Josh Smith15-Jun-06 5:42
Josh Smith15-Jun-06 5:42 
AnswerRe: Using ifdef DEBUG Pin
Alexander Wiseman15-Jun-06 5:39
Alexander Wiseman15-Jun-06 5:39 
QuestionDetect Dialup Connection (without WebRequest) Pin
Ariston Darmayuda15-Jun-06 5:01
Ariston Darmayuda15-Jun-06 5:01 
Questionhow to update graphic Pin
donkaiser15-Jun-06 4:52
donkaiser15-Jun-06 4:52 
AnswerRe: how to update graphic Pin
Guffa15-Jun-06 5:14
Guffa15-Jun-06 5:14 

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.