|
Posted by Richard Levasseur on 07/17/06 14:43
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 ?
No. Think about it: Where are those extra 8 bytes coming from? A
file is a contiguous piece of data, you can't insert into it randomly,
it has to be reallocated. (if you wanted to get really technically, it
could potentially be possible to create a small piece and jumping
around using i nodes, but thats way beyond the scope of our discussion)
Navigation:
[Reply to this message]
|