PHP based XML to CSV converter Code
Status: Pre-Alpha
Brought to you by:
reetp
File | Date | Author | Commit |
---|---|---|---|
PHP-XML Auto.php | 2009-11-05 | reetp | [r3] |
PHP-XML Manual.php | 2009-11-05 | reetp | [r3] |
README.txt | 2009-11-05 | reetp | [r8] |
feed1.xml | 2009-11-05 | reetp | [r5] |
feed2.xml | 2009-11-05 | reetp | [r5] |
index.php | 2009-11-05 | reetp | [r6] |
start.php | 2009-11-05 | reetp | [r4] |
start1.php | 2009-11-05 | reetp | [r8] |
test.csv | 2009-11-05 | reetp | [r8] |
Readme.txt XML to CSV converter Attempt to write a short piece of code to convert an XML format file to CSV. I'm no coder but, Hey. What the hell No plans to do anything other than batch convert a couple of files myself but it could be modified with more options Anyone with any ideas are welcome to join in. First attempt with SVN. Thought I'd try & be a bit more organised. 5/11/09 v.02 Checks for a file to write to. If there is an existing one it deletes it (could amend to move /rename) Reads in data and ouotputs it to file Need to clean up how we want the output formatted. Not sure about EOL char ? Fortunately can ignore pricing matrixes/arrays. No idea how you would do represent it in CSV. Brain hurts. 4/11/09 V .01 Test data feed1.xml feed2.xml index.php - check that it can open the XML file start.php - link to start1.php start1.php - main routine - extracts the information