Convert XML to JSON in PHP

Convert XML to JSON in PHP

Mit der wachsenden Popularität von Web 2.0 erweist sich das neue Datenaustauschformat JSON (JavaScript Object Notation) als äußerst nützlich um z.B. Daten, basierend auf XML, darzustellen.

Auf meiner Suche nach interessanten Tutorials im www bin ich mal wieder fündig geworden und habe zu diesem Thema ein, meiner Meinung nach, gelungenes Tutorial entdeckt. In dem Tutorial wird ausführlich erläutert, wie mittels PHP XML-formatierte Daten in das JSON Format umgewandelt werden können bevor sie an den Browser geschickt werden.

Zum Tutorial: http://www-128.ibm.com/developerworks/xml/library/x-xml2jsonphp/

Info JSON (Wikipedia):
JSON, kurz für JavaScript Object Notation und gesprochen wie der Name jason, ist ein kompaktes Computer-Format in für Mensch und Maschine einfach lesbarer Textform zum Zweck des Datenaustauschs zwischen Anwendungen. Obwohl der Name auf eine alleinige Verwendung in JavaScript hindeutet, ist JSON ein unabhängiges Format, welches theoretisch in jeder Programmiersprache eingesetzt werden kann. Es existieren JSON-Implementierungen unter anderem für C, C#, Java, JavaScript, Perl, PHP, Python, Ruby und Smalltalk.








XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>



Blogroll

Lorem ipsum

These 3 boxes are widgets and can be edited through the admin page, just like the sidebar.

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Impressum