Jump to content

Need help programming an XML reader and writer.


OM2

Recommended Posts

Need help programming an XML reader and writer.

Me: newbie to PHP, have done lots of little snippets of programming (mostly adjusting existing code).

 

I want to program my own mini CMS for an XML file - to read and write to the XML file.

 

Firstly: what do I need!?

 

1. Reading in the XML file.  I assume there must be lots of code examples of reading in XML in PHP?

Any recommended code snippets would be great.  Else, I'll google.

 

I want to read in the XML file and be able to access the contents easily - should I store in an array or something?

Or is it easier to reference the object that loads the XML file?

 

2. Need to be able to edit the contents and save.

On a simple level, I want to be able to enter values directly or even choose from drop down boxes.

 

BUT: I also want to be able to upload images (and video files).

For the uploading part: would it be better for me to use a well developed open source browser?

Can someone reommend an open source browser...?

 

In editing the XML file, I want to be able to create new records.

I need to be able to move things up and down and move to the top and move to the bottom.

 

I also need to delete specific files and be able to choose several files and delete them.

 

I've ask for quite a lot above.

I'm not looking for a full answer all in one go!

Any pointers where to start would be great!

I'll come back and ask when I get stuck on specific points.

Thanks.

 

 

OM

 

 

Okay, here's a really honest opinion.  I think that kind of XML manipulation is going to make you tear your hair out.  A database is about 200 times easier to work with, and it's much easier to retrieve information.  Why not use one?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.