xml-mapping
Version:
provide a bidirectionnal mapping between XML and JS data Structure (aka JSON)
58 lines • 2.71 kB
JSON
{ feed:
{ xmlns: 'http://www.w3.org/2005/Atom',
'xmlns:openSearch': 'http://a9.com/-/spec/opensearchrss/1.0/',
'xmlns:gd': 'http://schemas.google.com/g/2005',
'xmlns:gCal': 'http://schemas.google.com/gCal/2005',
id: { '$t': 'XXX' },
updated: { '$t': '2006-11-12T21:25:30.000Z' },
title: { type: 'text', '$t': 'Google Developer Events' },
subtitle:
{ type: 'text',
'$t': 'The calendar contains information about upcoming developer conferences at which Google will be speaking, along with other developer-related events.' },
link:
[ { rel: 'http://schemas.google.com/g/2005#feed',
type: 'application/atom+xml',
href: 'XXX' },
{ rel: 'self', type: 'application/atom+xml', href: 'XXX' } ],
author:
{ name: { '$t': 'Google Developer Calendar' },
email: { '$t': 'developer-calendar@google.com' } },
generator:
{ version: '1.0',
uri: 'http://www.google.com/calendar',
'$t': 'Google Calendar' },
'openSearch:startIndex': { '$t': '1' },
'openSearch:itemsPerPage': { '$t': '25' },
'gCal:timezone': { value: 'America/Los_Angeles' },
entry:
{ id: { '$t': 'XXX' },
published: { '$t': '2006-11-12T21:25:30.000Z' },
updated: { '$t': '2006-11-12T21:25:30.000Z' },
category:
[ { scheme: 'XXX', term: 'XXX' },
{ scheme: 'YYY', term: 'YYY' } ],
title:
{ type: 'text',
'$t': 'WebmasterWorld PubCon 2006: Google Developer Tools in General' },
content:
{ type: 'text',
'$t': 'Google is sponsoring at <a href="http://www.pubcon.com/">WebmasterWorld PubCon 2006</a>. Come and visit us at the booth or join us for an evening demo reception where we will be talking "5 ways to enhance your website with Google Code". After all, it is Vegas, baby! See you soon.' },
link:
[ { rel: 'alternate',
type: 'text/html',
href: 'XXX',
title: 'alternate' },
{ rel: 'self', type: 'application/atom+xml', href: 'XXX' } ],
author:
{ name: { '$t': 'Google Developer Calendar' },
email: { '$t': 'developer-calendar@google.com' } },
'gCal:sendEventNotifications': { value: 'true' },
'gd:comments': { 'gd:feedLink': { href: 'XXX' } },
'gd:transparency': { value: 'XXX' },
'gd:eventStatus': { value: 'XXX' },
'gd:where': { valueString: '3150 Paradise Road, Las Vegas, NV 89109' },
'gd:when':
{ startTime: '2006-11-15',
endTime: '2006-11-17',
'gd:reminder': { minutes: '10' } } },
'$c': 'Etc.' } }