PHP and XML question

Forum: ProgrammersTotal Replies: 1
Author Content
J_Maxwell

Feb 26, 2003
6:31 PM
Hello,

I have a question about PHP and XML. I am wondering how to write information to an XML file using PHP. Do I just have to do it manually, compile the information into one big string and then save it to a file, or is there a more "automated" way? I've been looking through the PHP manual, but haven't seen anything yet, am I missing something?

TIA,

J_Maxwell
dave

Feb 27, 2003
10:23 AM
Hi J_Maxwell,

I've wondered about this in the past. It sure would be nice to define a schema and then dump an array into an XML string.

Yet, I've never seen anything like this, nor is it a big enough deal to make me want to write it myself. So, I just continue to manually put the data into the format. It's really not that bad to create XML strings, actually.

Just put your data into a variable and then fopen() your file and write it away. Not bad at all.

best,
dave

Posting in this forum is limited to members of the group: SITEADMINS, SUBSCRIBERS, MEMBERS.]

the Open Forums!

  Login
If you don't have an account yet, visit the registration page to sign up.

If you already have an account, you may login here:

Username: Password:

  Welcome to the Open Forums!!
Welcome to the Open Forums!!

  Hosted By...

This website is hosted by:

 -
PreparingSons
 - Titus2.com


[ Copyright © the Open Forums! | All times are recorded in ET ]

[ Contact Us ]

Login

Powered by Scif 5.3 build 285 by StandardOut, Inc.