Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Phonegap Xml to Json Example
<?xml version="1.1" encoding="utf-8"?>
<!DOCTYPE html>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
<script src="jquery.js"></script>
<script src="lib/jquery.xml2json.js" type="text/javascript" language="javascript"></script>
<script type="text/javascript">
function readXml(){
$.get('data.xml', function(xml){
var employees = $.xml2json(xml);
<button onclick="readXml()">Read Xml</button>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment