Hi,
I am looking for a way to edit a XML document with PHP. My investigations so far have led to me to the proposal of using XSLTProcessor to output the XML file with values being editable in textboxes that the user can edit. Then I can write a parser to take the input and update the XML file and save it.
However, it is the mechanism of parsing the input fields and saving them that i'm unsure about. Has anyone done something like this before and what is the best way of doing this?
The XML document is fairly simple from a structural point of view, e.g.:
Code:
<root>
<stadiums>
<stadium>
<name>Ibrox Stadium</name>
<team>Glasgow Rangers</team>
<capacity>50149</capacity>
</stadium>
<stadium>
<name>Somerset Park</name>
<team>Ayr United</team>
<capacity>12000</capacity>
</stadium>
....and so on....
</stadiums>
</root>
Thanks,
Picco