Click here to Skip to main content
15,911,531 members
Home / Discussions / C#
   

C#

 
AnswerRe: What is the best way to represent a set of references ? Pin
Luc Pattyn17-Feb-07 12:20
sitebuilderLuc Pattyn17-Feb-07 12:20 
AnswerRe: What is the best way to represent a set of references ? Pin
zark9218-Feb-07 21:15
zark9218-Feb-07 21:15 
QuestionListview with images? Pin
sharpiesharpie17-Feb-07 8:23
sharpiesharpie17-Feb-07 8:23 
AnswerRe: Listview with images? Pin
Pete O'Hanlon17-Feb-07 9:59
mvePete O'Hanlon17-Feb-07 9:59 
QuestionHow can i connect C# to a IBM db2 server? Pin
icesha17-Feb-07 7:14
icesha17-Feb-07 7:14 
Questionxml attributes and sql database Pin
spin vector17-Feb-07 6:11
spin vector17-Feb-07 6:11 
QuestionProblems with XML Pin
sharpiesharpie17-Feb-07 4:03
sharpiesharpie17-Feb-07 4:03 
AnswerRe: Problems with XML Pin
Stefan Troschuetz17-Feb-07 4:56
Stefan Troschuetz17-Feb-07 4:56 
sharpiesharpie wrote:
The problem is that it overwrites the previous text in the file every time, is there a way to append the text?


If you do not want to overwrite the file, then load the already existing file into the XmlDocument with help of the Load method.
docXML.Load(s_FileName);

Afterwards add all information you want by using the various CreateXX methods. Take a look at their documentation to see what exactly they are doing and how to use them.

sharpiesharpie wrote:
and is there a better way to save the information?


If you want to persist a collection of some fix type in a XML file, I suggest the use of the XmlSerializer class. I've written an application for the management of birthdays that makes use of this. You can download the source code here: Birthday Manager[^]


"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook

www.troschuetz.de

GeneralRe: Problems with XML Pin
sharpiesharpie17-Feb-07 5:33
sharpiesharpie17-Feb-07 5:33 
GeneralRe: Problems with XML Pin
Heath Stewart17-Feb-07 5:41
protectorHeath Stewart17-Feb-07 5:41 
GeneralRe: Problems with XML Pin
Stefan Troschuetz17-Feb-07 5:54
Stefan Troschuetz17-Feb-07 5:54 
GeneralRe: Problems with XML Pin
sharpiesharpie17-Feb-07 6:16
sharpiesharpie17-Feb-07 6:16 
GeneralRe: Problems with XML Pin
Stefan Troschuetz17-Feb-07 6:25
Stefan Troschuetz17-Feb-07 6:25 
GeneralRe: Problems with XML Pin
sharpiesharpie17-Feb-07 6:35
sharpiesharpie17-Feb-07 6:35 
GeneralRe: Problems with XML Pin
Stefan Troschuetz17-Feb-07 6:46
Stefan Troschuetz17-Feb-07 6:46 
GeneralRe: Problems with XML Pin
sharpiesharpie17-Feb-07 6:49
sharpiesharpie17-Feb-07 6:49 
GeneralRe: Problems with XML Pin
Stefan Troschuetz17-Feb-07 7:04
Stefan Troschuetz17-Feb-07 7:04 
GeneralRe: Problems with XML Pin
sharpiesharpie17-Feb-07 7:43
sharpiesharpie17-Feb-07 7:43 
GeneralRe: Problems with XML Pin
sharpiesharpie17-Feb-07 7:57
sharpiesharpie17-Feb-07 7:57 
Questionlanguage question Pin
OlaMohammed17-Feb-07 2:17
OlaMohammed17-Feb-07 2:17 
AnswerRe: language question Pin
Simon P Stevens17-Feb-07 3:04
Simon P Stevens17-Feb-07 3:04 
GeneralRe: language question Pin
OlaMohammed18-Feb-07 0:25
OlaMohammed18-Feb-07 0:25 
AnswerRe: language question Pin
Stefan Troschuetz17-Feb-07 3:30
Stefan Troschuetz17-Feb-07 3:30 
QuestionChanging an object value in listbox control .. Pin
Hussam Fattahi17-Feb-07 0:38
Hussam Fattahi17-Feb-07 0:38 
AnswerRe: Changing an object value in listbox control .. Pin
Luc Pattyn17-Feb-07 1:32
sitebuilderLuc Pattyn17-Feb-07 1:32 

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.