Click here to Skip to main content
15,889,861 members
Home / Discussions / C#
   

C#

 
AnswerRe: Specific XML Format Pin
PIEBALDconsult11-Nov-08 9:49
mvePIEBALDconsult11-Nov-08 9:49 
GeneralRe: Specific XML Format Pin
#realJSOP11-Nov-08 9:50
mve#realJSOP11-Nov-08 9:50 
GeneralRe: Specific XML Format Pin
PIEBALDconsult11-Nov-08 11:03
mvePIEBALDconsult11-Nov-08 11:03 
GeneralRe: Specific XML Format Pin
Jammer11-Nov-08 22:33
Jammer11-Nov-08 22:33 
AnswerRe: Specific XML Format Pin
#realJSOP11-Nov-08 9:49
mve#realJSOP11-Nov-08 9:49 
AnswerView source - missing code Pin
DaveyM6911-Nov-08 12:02
professionalDaveyM6911-Nov-08 12:02 
GeneralRe: View source - missing code Pin
PIEBALDconsult11-Nov-08 14:10
mvePIEBALDconsult11-Nov-08 14:10 
AnswerRe: Specific XML Format Pin
PIEBALDconsult11-Nov-08 14:27
mvePIEBALDconsult11-Nov-08 14:27 
I generally use an XmlDocument to hold XML and write it to a file with code like:

WriterSettings = new System.Xml.XmlWriterSettings() ;
WriterSettings.Indent = true ;
WriterSettings.Encoding = System.Text.Encoding.UTF8 ;
WriterSettings.OmitXmlDeclaration = true ;
WriterSettings.CheckCharacters = false ;
 
using 
( 
    System.Xml.XmlWriter writer 
= 
    System.Xml.XmlWriter.Create 
    ( 
        File
    , 
        WriterSettings
    )
)
{
    Doc.WriteTo ( writer ) ;
}


You may need to tweak WriterSettings.NewLineChars and WriterSettings.Encoding.
QuestionC# projects Pin
parkerproject11-Nov-08 8:19
parkerproject11-Nov-08 8:19 
AnswerRe: C# projects Pin
Pete O'Hanlon11-Nov-08 8:26
mvePete O'Hanlon11-Nov-08 8:26 
GeneralRe: C# projects Pin
parkerproject11-Nov-08 23:56
parkerproject11-Nov-08 23:56 
AnswerRe: C# projects Pin
PIEBALDconsult11-Nov-08 9:02
mvePIEBALDconsult11-Nov-08 9:02 
GeneralRe: C# projects Pin
parkerproject12-Nov-08 0:00
parkerproject12-Nov-08 0:00 
AnswerRe: C# projects Pin
Paul Conrad11-Nov-08 15:34
professionalPaul Conrad11-Nov-08 15:34 
GeneralRe: C# projects Pin
parkerproject11-Nov-08 23:55
parkerproject11-Nov-08 23:55 
GeneralRe: C# projects Pin
Paul Conrad12-Nov-08 3:34
professionalPaul Conrad12-Nov-08 3:34 
AnswerRe: C# projects Pin
Brij11-Nov-08 18:31
mentorBrij11-Nov-08 18:31 
Questiononclick event [modified] Pin
netJP12L11-Nov-08 7:14
netJP12L11-Nov-08 7:14 
AnswerRe: onclick event Pin
#realJSOP11-Nov-08 7:20
mve#realJSOP11-Nov-08 7:20 
GeneralRe: onclick event Pin
netJP12L11-Nov-08 8:11
netJP12L11-Nov-08 8:11 
GeneralRe: onclick event Pin
#realJSOP11-Nov-08 8:46
mve#realJSOP11-Nov-08 8:46 
GeneralRe: onclick event Pin
netJP12L11-Nov-08 8:53
netJP12L11-Nov-08 8:53 
AnswerRe: onclick event Pin
ScottM111-Nov-08 20:47
ScottM111-Nov-08 20:47 
QuestionSearch through datatable for item in ListView? Pin
kanchoette11-Nov-08 4:49
kanchoette11-Nov-08 4:49 
QuestionLinq to SQL two combobox [modified] Pin
mutafa8111-Nov-08 4:00
mutafa8111-Nov-08 4:00 

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.