This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
appending to XML file before closing tag
- From: "William S." <wstan at xs4all dot nl>
- To: xsl-list <XSL-List at lists dot mulberrytech dot com>
- Date: Tue, 25 Jun 2002 14:53:10 +0200
- Subject: [xsl] appending to XML file before closing tag
- Reply-to: xsl-list at lists dot mulberrytech dot com
This works pretty well to append content to
an XML file. However, I need to keep the
closing tag where it belongs: at the end of
the file. This only appends to the end and
doesn't work.
I use ...
$myecho = "Hello World";
$file_name = "file.xml";
$file_pointer = fopen($file_name, "a");
fwrite($file_pointer, $myecho);
fclose($file_pointer);
I know I need to introduce: fread() and fseek().
but not sure how to put it all together.
Anyone?
--
Bill
Amsterdam, NL
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list