473,383 Members | 1,952 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Updating an XML file via web interface?

Hi,

I am developing a website for a client. On each web page, I have a created a "News Link" section. This section dynamically displays news articles from an XML document that I created using Adobe Spry. What I want to do is to have the client update their news articles. I'd like to write some sort of web interface where they could...

- View the articles
- Add and delete articles
- Make changes to existing articles

This would require updating the XML. Could I do this with PHP? Whats the best way of accomplishing this?
Jan 5 '09 #1
4 3034
Dormilich
8,658 Expert Mod 8TB
I don't know what the best way is, but you can do it with PHP. to make changes to XML files you can load them into either the SimpleXML or the DOMDocument class. DOMDocument is more versatile and shouldn't make too many problems if you're familiar with DOM (e.g. from javascript) though pretty much depends (imho) on the HTML interface.

regards

somewhere on the net I've seen a RSS generator class.... maybe I find it again.
Jan 5 '09 #2
Maybe an easier way is to just build a mySQL database rather than XML? Writing PHP to update that would be simple.
Jan 5 '09 #3
Dormilich
8,658 Expert Mod 8TB
why not, seems reasonable. it's only a matter of personal preference which way to go.

regards
Jan 5 '09 #4
jkmyoung
2,057 Expert 2GB
I'm not sure why you're not just updating a database with the new xml (or fields), and then regenerating the whole xml. How do you create the xml from Adobe Spry in the first place?
Jan 6 '09 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

11
by: Jason | last post by:
Let's say I have an html form with 20 or 30 fields in it. The form submits the fields via POST to a php page which updates a table in a database with the $_POST vars. Which makes more sense? ...
1
by: gaosul | last post by:
I am non-programming scientist and I am using a Program called Easyarticles from Synaptosoft Inc., which is based the database program Access. Unfortunately, the owner of this company has...
5
by: Claire | last post by:
My progress window is created by a secondary thread and then updated by it while a file is uploaded. There's an avi animation control on there that should show the move file avi. Plus a progress...
1
by: Matt | last post by:
Hi, I was wondering if anyone can tell me why dynamically updating the web.config file causes ASP.NET worker process to recycle and detroy all session states including variables. Is this a known...
2
by: Colli | last post by:
Hi: I need to setup a continuously updating system Date/Time in my user interface. I can get the system date/time and can cause it to update with a button-click but I can't seem to figure out how...
6
by: muttu2244 | last post by:
hi all am updating the same file in ftp, through multiple clients, but am scared that two clients may open the same file at a time, and try updating, then the data updated by one data will be...
5
by: Beorne | last post by:
Hello, I'm a Java programmer and I'm new to C# (I've read something but I've no real programming experience). I'm programming a form that displays some data from an external source (i.e. a com...
2
by: psybert | last post by:
Ok. I'm new to the programming / developing scene. I usually teach myself what I need to learn. So anyway this is what i'm trying to accomplish. I've created a site (HTML/JavaScript) that displays...
0
by: Code Monkey | last post by:
Suppose I have a windows form (.exe) that has a load of labels and text boxes on it. I enter a number into one of the text boxes and hit the search button. This then launches another thread,...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.