PC Review


Reply
 
 
steve
Guest
Posts: n/a
 
      5th Apr 2005
i've not used a dataset to write xml before. i'd like to know how i can use
dataset.writexml() to append to an existing xml file. secondly, i'd like to
know how i can load an xml file and delete records from it. i've seen the
dataset object can load xml pretty easily...but i haven't seen any examples
of deleting from one where the records are actually removed from the
original xml file.

the xml file is basically a transaction log. when the application starts, i
need to load the xml transaction file and drop records that are n days old.
when i submit transactions, i need to record what was sent and whether a
record was accepted/rejected.

any examples or links to them is greatly appreciated.

tia,

steve


 
Reply With Quote
 
 
 
 
steve
Guest
Posts: n/a
 
      6th Apr 2005
never mind.

"steve" <(E-Mail Removed)> wrote in message news:AcD4e.1412$(E-Mail Removed)...
| i've not used a dataset to write xml before. i'd like to know how i can
use
| dataset.writexml() to append to an existing xml file. secondly, i'd like
to
| know how i can load an xml file and delete records from it. i've seen the
| dataset object can load xml pretty easily...but i haven't seen any
examples
| of deleting from one where the records are actually removed from the
| original xml file.
|
| the xml file is basically a transaction log. when the application starts,
i
| need to load the xml transaction file and drop records that are n days
old.
| when i submit transactions, i need to record what was sent and whether a
| record was accepted/rejected.
|
| any examples or links to them is greatly appreciated.
|
| tia,
|
| steve
|
|


 
Reply With Quote
 
Cor Ligthert
Guest
Posts: n/a
 
      6th Apr 2005
Steve,

In my opinion is the dataset (or any XML file) not the right format to write
a log. AFAIK can you not append to that directly on disk.


Cor


 
Reply With Quote
 
steve
Guest
Posts: n/a
 
      6th Apr 2005
you can append to it but writexml() doesn't put the <?xml /> header stuff in
the output stream...so you can't do a readxml().

as far as the format of the log...format follows function. ;^)


"Cor Ligthert" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
| Steve,
|
| In my opinion is the dataset (or any XML file) not the right format to
write
| a log. AFAIK can you not append to that directly on disk.
|
|
| Cor
|
|


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to cast object of type 'System.Data.DataSet' to Typed DataSet Optimus Microsoft VB .NET 1 31st Jan 2006 06:26 AM
Ccopying a datatable content from an untyped dataset into a table which is inside a typed dataset Nedu N Microsoft ADO .NET 7 9th Dec 2003 02:50 PM
copying a datatable content from an untyped dataset into a table which is inside a typed dataset Nedu N Microsoft ADO .NET 2 31st Oct 2003 01:05 PM
copying a datatable content from an untyped dataset into a table which is inside a typed dataset Nedu N Microsoft ASP .NET 2 31st Oct 2003 01:05 PM
Ccopying a datatable content from an untyped dataset into a table which is inside a typed dataset Nedu N Microsoft ASP .NET 2 31st Oct 2003 02:42 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:14 PM.