Skip to content

Commit

Permalink
Added README, core files and example file.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gingah committed Mar 10, 2011
0 parents commit 9a9a555
Show file tree
Hide file tree
Showing 4 changed files with 15,103 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
@package XML2JSON
@package_version 1.0
@file_version 1.0
@author Gingah
@copyright Copyright (c) 2010 - 2011, Gingah
@link https://github.com/Gingah/Quick-XML-to-JSON
@license http://creativecommons.org/licenses/by-nc-sa/3.0/no/deed.en

Quick XML to JSON (abbreviated XML2JSON) is a PHP-file for creating a JSON file
from a XML file. It uses Simplepie to read the XML/RSS data.

Installation:
1. Copy all the files (file.xml, xml2json.php and simplepie.inc) to a directory
on your webserver that supports PHP.
2. Run xml2json.php (open it in your browser).
3. A file called file.xml.js will now be located in the same directory, it
contains the JSON version of the XML you input.
4. Customize the functionality of xml2json.php as you see fit.
22 changes: 22 additions & 0 deletions file.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/">
<channel>
<title>MangerCD</title>
<description>MangerFHS 09/10</description>
<item>
<title>A Fraction of Warfare</title>
<link>cd_a-fraction-of-warfare</link>
<description>Mats Kaarboe</description>
<pubDate>Mandag, 17. mai 2010 19:08:00 GMT+1</pubDate>
<media:content url="mp3/01_A_Fraction_of_Warfare.mp3" duration="144" />
<media:thumbnail url="mp3/01_A_Fraction_of_Warfare.png" width="512" height="288" />
</item>
<item>
<title>Kingdom of Misery</title>
<link>cd_kingdom-of-misery</link>
<description>Excalibur</description>
<pubDate>Mandag, 17. mai 2010 19:08:00 GMT+1</pubDate>
<media:content url="mp3/02_Kingdom_of_Misery.mp3" duration="284" />
<media:thumbnail url="mp3/02_Kingdom_of_Misery.png" width="512" height="288" />
</item>
</channel>
</rss>
Loading

0 comments on commit 9a9a555

Please sign in to comment.