dataset xml

S

steve

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
 
S

steve

never mind.

| 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
|
|
 
C

Cor Ligthert

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
 
S

steve

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. ;^)


| 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
|
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top