Reply to Re: Update only Xml node (PHP5)

Your name:

Reply:


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)

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация