Printer Friendly Version Print this thread
Email this thread to a friend eMail this thread to a friend
Related Forum Posts
Featured Web Site Template

Hundreds More at Free Site Templates.com!

Web Site Partners
Sponsored Links
Jet City Software
 
Whos Here ?
Reflects user activity within the last 5 minutes
Member Message

surrealillusions
Joined: Mar 18, 2008
# Posts: 11

View the profile for surrealillusions Send surrealillusions a private message

Posted: 03/18/2008 04:00 pm
Edit Message Delete Message Reply to this message

I would like to know how to read and write to xml files.

Although i guess the writing part should come first wink

So, how do you go about getting the the data from a user filled form (presuming its already been checked for naughty things), and write it to the xml file? I know xml doesn't really have any set tags, its down to the user to write those tags for what they want such as <name> <comments> <shoesize> etc etc..

But thats about all i know...

any pointers in the right direction would be very much appreciated

smile



mj1256
Joined: Jun 05, 2006
# Posts: 859

View the profile for mj1256 Send mj1256 a private message

Posted: 03/18/2008 09:01 pm
Edit Message Delete Message Reply to this message

what is it your trying to accomplish??



surrealillusions
Joined: Mar 18, 2008
# Posts: 11

View the profile for surrealillusions Send surrealillusions a private message

Posted: 03/19/2008 05:21 am
Edit Message Delete Message Reply to this message

anything really, where reading and writing to xml files would be beneficial.

The only thing i can think of at the moment would be a guestbook for several pages with different sets of comments on...however a mysql database could be used for that.

smile



langardmicro
Joined: Mar 12, 2007
# Posts: 76

View the profile for langardmicro Send langardmicro a private message

Posted: 04/02/2008 02:46 am
Edit Message Delete Message Reply to this message

I don't get it. Modern browsers don't read raw XML, yet. They don't even read SGML for that matter. Everything must be translated, at some point, into plain HTML for people on the Web to see... whatever.

So you want to make "reading and writing" XML files beneficial -- like spending eighty million dollars Microsoft has spent to do the same thing? I agree. So would I. And what do free-source databases (MySql) have to do with that?

In short, I don't understand your question because it's like apples, oranges and apricots.



surrealillusions
Joined: Mar 18, 2008
# Posts: 11

View the profile for surrealillusions Send surrealillusions a private message

Posted: 04/06/2008 03:05 pm
Edit Message Delete Message Reply to this message

Yeah, i dont think you understand smile

I was asking how to use xml files, or more specifically using php to read and write to xml files as a way of storing data or utilising them in a web enviroment.

smile



beth_lk
Staff
Joined: Jun 23, 2004
# Posts: 1138

View the profile for beth_lk Send beth_lk a private message

Posted: 04/07/2008 01:49 pm
Edit Message Delete Message Reply to this message

As far as I am aware it can't be done - at least not efficiently.

A web site I am working on the client wanted to send me files and such in xml - and have me publish them as such.... I was like "why"?!






Dinkar
Staff
Joined: Aug 12, 2001
# Posts: 4353

View the profile for Dinkar Send Dinkar a private message

Posted: 04/07/2008 07:00 pm
Edit Message Delete Message Reply to this message

Use PHP's XML Parser Functions.

Let me know if you have more questions.

PS:-

Here are few links you may like to see:

http://in.php.net/manual-lookup.php?pattern=xml+read&lang=en
http://in.php.net/manual-lookup.php?pattern=xml+write&lang=en




Prowler
Staff
Joined: Aug 14, 2000
# Posts: 1752

View the profile for Prowler Send Prowler a private message

Posted: 04/10/2008 01:00 am
Edit Message Delete Message Reply to this message

>> As far as I am aware it can't be done - at least not efficiently.

In the world of Internet, there is no such thing called as "impossible". smile
Everything is possible - it is a matter of complexity.

There is one more extremely useful XML based RSS parser here: [link]

We have used this for deploying a consolidated list of "news " from various XML feeds in a high traffic site. It has an in built cache so the server load is manageable.


You are not permitted to post messages in this forum or topic, because of one or more of the following reasons:
  1. You have not yet logged in, or registered properly as a member
  2. You are a member, but no longer have posting rights.
  3. This is a private forum, for which you do not have permissions.

If you are a recent member, it's possible that you simply have not yet confirmed your account. Please check your email for a message entitled 'JimWorld Forums: Confirm Your Account' and follow the instructions contained within.

If you cannot find this message, click here to Re-Send it.

If you are still experiencing problem, please read the Login Assistance Article for some advice on what may be causing your login not to work properly.

Switch to Advanced Editor and ... Create a New Topic or Reply to this Thread

New posts Forum is locked
© 1995  ·  iWeb, Inc  ·  DBA JimWorld Productions