Click here to Skip to main content
15,887,175 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: DataSet Relations Pin
xoph21-Aug-03 1:52
xoph21-Aug-03 1:52 
GeneralRe: DataSet Relations Pin
totig21-Aug-03 2:29
totig21-Aug-03 2:29 
GeneralRe: DataSet Relations Pin
xoph23-Aug-03 0:23
xoph23-Aug-03 0:23 
GeneralRe: DataSet Relations Pin
xfqiu21-Aug-03 21:35
xfqiu21-Aug-03 21:35 
GeneralA Question about Remoting Pin
Mazdak20-Aug-03 23:49
Mazdak20-Aug-03 23:49 
GeneralRe: A Question about Remoting Pin
shaunAustin21-Aug-03 3:09
shaunAustin21-Aug-03 3:09 
GeneralRe: A Question about Remoting Pin
Mazdak21-Aug-03 20:38
Mazdak21-Aug-03 20:38 
GeneralRe: A Question about Remoting Pin
Mazdak21-Aug-03 21:30
Mazdak21-Aug-03 21:30 
GeneralRe: A Question about Remoting Pin
shaunAustin21-Aug-03 22:04
shaunAustin21-Aug-03 22:04 
GeneralI know it's a silly thing, but this is giving me hassle... Pin
The_Preacher20-Aug-03 23:04
The_Preacher20-Aug-03 23:04 
GeneralRe: I know it's a silly thing, but this is giving me hassle... Pin
MeisterBiber21-Aug-03 4:06
MeisterBiber21-Aug-03 4:06 
GeneralRe: I know it's a silly thing, but this is giving me hassle... Pin
Alvaro Mendez21-Aug-03 11:11
Alvaro Mendez21-Aug-03 11:11 
GeneralAsynchronous Delegates Pin
Ryan Binns20-Aug-03 17:18
Ryan Binns20-Aug-03 17:18 
GeneralRe: Asynchronous Delegates Pin
J. Dunlap20-Aug-03 18:06
J. Dunlap20-Aug-03 18:06 
GeneralRe: Asynchronous Delegates Pin
Ryan Binns20-Aug-03 18:14
Ryan Binns20-Aug-03 18:14 
GeneralRe: Asynchronous Delegates Pin
J. Dunlap20-Aug-03 18:19
J. Dunlap20-Aug-03 18:19 

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.