Here is a sample XML:
<xml id="javascriptObject">
<name>Joe</name>
<age>12</age>
<gender>M</gender>
</xml>
Object produced after digesting the XML above should be equivalent to:
var obj = {name: 'Joe', age: '12', gender: 'M'};
You guys know any functions in javascript or in jQuery that will convert the XML to a javascript object? If none, any ideas on how to do this the best way as possible? Thanks guys!