By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,575 Members | 1,402 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,575 IT Pros & Developers. It's quick & easy.

XML Write

P: n/a
Can someone give me an example of reading, modifing and writing an XML
file???
Jul 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
On Fri, 15 Apr 2005 20:58:28 +0300, "Pitaridis Aristotelis"
<pi*******@hotmail.com> wrote:
Can someone give me an example of reading, modifing and writing an XML
file???


The manual has examples.

The filesystem functions, e.g fopen, fread can read an XML file. fwrite can
write XML files. Presumably you want to read and _parse_ the file.

In which case there's various options depending on the version you're on.
Search for XML on http://php.net for functions and examples.

--
Andy Hassall / <an**@andyh.co.uk> / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool
Jul 17 '05 #2

P: n/a
I do not want to read and write like opening a file. In VB.NET, I can open
the file like a database, and access the data using SQL commands. Can I do
the same in PHP?

"Andy Hassall" <an**@andyh.co.uk> wrote in message
news:j2********************************@4ax.com...

On Fri, 15 Apr 2005 20:58:28 +0300, "Pitaridis Aristotelis"
<pi*******@hotmail.com> wrote:
Can someone give me an example of reading, modifing and writing an XML
file???
The manual has examples.

The filesystem functions, e.g fopen, fread can read an XML file. fwrite

can write XML files. Presumably you want to read and _parse_ the file.

In which case there's various options depending on the version you're on.
Search for XML on http://php.net for functions and examples.

--
Andy Hassall / <an**@andyh.co.uk> / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool

Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.