Reply to Re: Update only Xml node (PHP5)

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на 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

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