|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
dataset xmli'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 never mind.
Show quoteHide quote "steve" <a@b.com> wrote in message news:AcD4e.1412$lI6.1089@fe04.lga... | 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 | | 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 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. ;^) Show quoteHide quote "Cor Ligthert" <notmyfirstn***@planet.nl> wrote in message news:uX48HgpOFHA.2288@TK2MSFTNGP10.phx.gbl... | 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 | | |
|||||||||||||||||||||||