Would anyone know a good way to read an XML file and Append to it as well.
Printable View
Would anyone know a good way to read an XML file and Append to it as well.
The DOM functions are the superior method of manipulating an XML document.
DOM may be just what I'm looking for. I'm trying to create a little RSS feed thing using Item, Title, Link, and Description. Is there a way to make something like this using DOM?
Quite easily, and it would be the preferred method for creating a static XML file.
For a dynamic feed—i.e., one that was generated on every request—it'd be easier just to embed the PHP instructions into the XML.
If you can be a little more specific about what you need, we can help a bit more.
Basically I want to make some pages where I can read, write, create, and append XML files. I want to do this so I can experiment with it. Then I'm going to eventually make another page that will get that XML file and make it look presentable and enjoyable to read. It's going to be just experimental though. I want to use the RSS format, "link", "title", "description", etc.