Click here to Skip to main content
15,895,084 members
Home / Discussions / C#
   

C#

 
GeneralRe: Get installer to create empty folders? Pin
vlusardi22-Aug-03 5:23
vlusardi22-Aug-03 5:23 
Generalfirst step in C# Pin
aguest21-Aug-03 12:05
aguest21-Aug-03 12:05 
GeneralRe: first step in C# Pin
MeisterBiber21-Aug-03 22:05
MeisterBiber21-Aug-03 22:05 
GeneralRe: first step in C# Pin
MeisterBiber22-Aug-03 12:05
MeisterBiber22-Aug-03 12:05 
GeneralProblem with FileLoadException Pin
adaoja21-Aug-03 9:47
adaoja21-Aug-03 9:47 
Questionwraping text in a cell of a datagrid? Pin
mikemilano21-Aug-03 9:38
mikemilano21-Aug-03 9:38 
AnswerRe: wraping text in a cell of a datagrid? Pin
Ista21-Aug-03 14:43
Ista21-Aug-03 14:43 
Questiondeploy 2 components w/ one installer? Pin
vlusardi21-Aug-03 6:25
vlusardi21-Aug-03 6:25 
GeneralVB.NET to C# converter Pin
Iftikhar Ahmad Dar21-Aug-03 5:31
Iftikhar Ahmad Dar21-Aug-03 5:31 
GeneralRe: VB.NET to C# converter Pin
Okeno Palmer21-Aug-03 7:00
Okeno Palmer21-Aug-03 7:00 
GeneralCheck Box in Datagrid with Autopostback Pin
0siris21-Aug-03 5:23
0siris21-Aug-03 5:23 
GeneralRe: Check Box in Datagrid with Autopostback Pin
Ista21-Aug-03 14:47
Ista21-Aug-03 14:47 
Generalremoting - ClientSponsor and leasetime Pin
devvvy21-Aug-03 5:03
devvvy21-Aug-03 5:03 
GeneralHello Pin
totig21-Aug-03 4:37
totig21-Aug-03 4:37 
GeneralRe: Hello Pin
Jeff Martin21-Aug-03 6:09
Jeff Martin21-Aug-03 6:09 
GeneralDataTable / DataGrid / DataView ??!?! Pin
MeisterBiber21-Aug-03 4:12
MeisterBiber21-Aug-03 4:12 
GeneralRe: DataTable / DataGrid / DataView ??!?! Pin
Ista21-Aug-03 14:49
Ista21-Aug-03 14:49 
GeneralRe: DataTable / DataGrid / DataView ??!?! Pin
MeisterBiber21-Aug-03 21:54
MeisterBiber21-Aug-03 21:54 
Generalxml file Pin
jphuphilly21-Aug-03 2:59
jphuphilly21-Aug-03 2:59 
GeneralRe: xml file Pin
Julian Bucknall [MSFT]21-Aug-03 5:11
Julian Bucknall [MSFT]21-Aug-03 5:11 
GeneralRe: xml file Pin
jphuphilly22-Aug-03 3:45
jphuphilly22-Aug-03 3:45 
GeneralRe: xml file Pin
Manster22-Aug-03 4:28
Manster22-Aug-03 4:28 
GeneralRe: xml file Pin
Julian Bucknall [MSFT]22-Aug-03 5:51
Julian Bucknall [MSFT]22-Aug-03 5:51 
GeneralRe: xml file Pin
Julian Bucknall [MSFT]22-Aug-03 10:27
Julian Bucknall [MSFT]22-Aug-03 10:27 
Actually, even this simplistic model is broken, if you think about it.

An XML document has a root element. If you append more elements to an XML file you should appeand them within the root element; in other words, before the final . So if you had:

<root>
  <element>
    some data
  </element>
</root>


and wanted to add another element, you'd have to end up with this:

<root>
  <element>
    some data
  </element>
  <element>
    and yet more data
  </element>
</root>


Interesting. Without parsing the entire XML document, this could be pretty complex. Possibly the best idea is to read the entire file as XML and then write it out again completely with the extra element(s).

Cheers, Julian
Program Manager, C#

This posting is provided "AS IS" with no warranties, and confers no rights.
GeneralDataSet Relations Pin
totig21-Aug-03 1:06
totig21-Aug-03 1:06 

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.