Printer Friendly Version
Email this thread to a friend
|
Featured Web Site Template |
|
There are 0 guests and 1 members in the forums right now.
Reflects user activity within the last 5 minutes
|
|
| Member |
Message |
surrealillusions
Joined: Mar 18, 2008
# Posts: 11
|
Posted: 03/18/2008 04:00 pm
I would like to know how to read and write to xml files.
Although i guess the writing part should come first
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
|
 |
mj1256
Joined: Jun 05, 2006
# Posts: 859
|
Posted: 03/18/2008 09:01 pm
what is it your trying to accomplish??
|
 |
surrealillusions
Joined: Mar 18, 2008
# Posts: 11
|
Posted: 03/19/2008 05:21 am
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.
|
 |
langardmicro
Joined: Mar 12, 2007
# Posts: 76
|
Posted: 04/02/2008 02:46 am
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
|
Posted: 04/06/2008 03:05 pm
Yeah, i dont think you understand
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.
|
 |
beth_lk
Staff
Joined: Jun 23, 2004
# Posts: 1138
|
Posted: 04/07/2008 01:49 pm
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
|
Posted: 04/07/2008 07:00 pm
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
|
Posted: 04/10/2008 01:00 am
>> 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".
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:
- You have not yet logged in, or registered properly as a member
- You are a member, but no longer have posting rights.
- 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
|
|