Re: Update only Xml node (PHP5)
- From: "Richard Levasseur" <richardlev@xxxxxxxxx>
- Date: 17 Jul 2006 07:43:36 -0700
jhullu@xxxxxxxxx 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)
.
- References:
- Update only Xml node (PHP5)
- From: jhullu@xxxxxxxxx
- Update only Xml node (PHP5)
- Prev by Date: Re: Combining 2 preg matches.
- Next by Date: Mehere mySQL-Tabellen mit einem PHP-Befehl erstellen?
- Previous by thread: Re: Update only Xml node (PHP5)
- Next by thread: PHP5:soap extension - Encoding problem
- Index(es):