
November 21st, 2008, 09:59 AM
|
 |
Contributing User
|
|
Join Date: Apr 2007
Location: peoria, IL, USA
Posts: 168
Time spent in forums: 21 h 32 m 34 sec
Reputation Power: 3
|
|
Reading in XML for edit
Before I reinvent the wheel, I though I would ask the experts.
Basically, I need to create a PHP script to read in any XML file, turn it into a form based on the xml tags, then output the changes to the same xml file. Before roll my sleeves up and start trying to read in the XML with PHP, use regular expressions to pull out the tags and create a form based on those tags, and then output the new XML, I wondered if I'm headed in the right direction.
Any opinions on the best method of attack? The XML files don't always have the same tags, would using regular expressions be the preferred way to create one php script to read in any XML file for edit then spit it back out?
Thanks for any ideas or help.
Robert
|