Posted by ImOk on 07/17/06 13:03
An XML file is like an HTML file or TXT file. Normally using the Dom
XML you cannot read and update part of an XML file directly off disk.
You must read the whole file in memory, change part of it in memory and
then you must rewrite the whole file back to disk.
However there are database engines that do this (I've read about them
but never used them). But your XML file will have a lot of extra
attributes used by the database engine.
It depends what you are doing.
jhullu@gmail.com wrote:
> Hi all
>
> can I update a xml node AND write the new value in a file witout
> re-write all the file ?
>
> sample :
>
> my xml file :
>
> <sample>
> <exo id="1" value="Test" />
> </sample>
>
> i want to modify the file like
>
> <sample>
> <exo id="1" value="Test updated" />
> </sample>
>
> is it possible ?
[Back to original message]
|