> > <entry xmlns="http://www.w3.org/2005/Atom" > xmlns:i="http://infogami.org/schema" > xmlns:d="http://demo.openlibrary.org/type/page"> > <i:type>type/page</type> > <d:title>Foo</d:title> > <d:body>Bar</d:body> > </entry>
There is a problem with this approach. How to represent lists? Because we are not showing the parent information, there is also a need to represent dictionaries sometimes. For example, value of properties field of /type/page/feed is list of dicts.
['title': {'type': 'type/string', 'unique': True, 'description':''}, 'body' : {'type': 'type/text', 'unique':True, 'description': ''}]
I think plist kind of format suits better than above flat format.
<entry xmlns="http://www.w3.org/2005/Atom"> <key>name</key> <string>type/page</string> <key>created</key> <timestamp>2006-01-23T16:26:03-08:00</timestamp> <key>author</key> <ref>user/anand</ref> <key>type</key> <ref>type/type</ref> <key>revision</key> <int>7</int> <key>data</key> <dict> <key>description</key> <string></string> <key>is_primitive</string> <boolean>false</boolean> <key>properties</key> <list> <key>title</key> <dict> <key>type</key> <ref>type/string</ref> <key>unique</key> <boolean>true</ref> <key>description</key> <string></string> </dict> <key>body</key> <dict> <key>type</key> <ref>type/text</ref> <key>unique</key> <boolean>true</ref> <key>description</key> <string></string> </dict> </list> </entry>
> www.w3. org/2005/ Atom" infogami. org/schema" demo.openlibrar y.org/type/ page"> type/page< /type> Foo</d: title> Bar</d: body>
> <entry xmlns="http://
> xmlns:i="http://
> xmlns:d="http://
> <i:type>
> <d:title>
> <d:body>
> </entry>
There is a problem with this approach. How to represent lists?
Because we are not showing the parent information, there is also a
need to represent dictionaries sometimes.
For example, value of properties field of /type/page/feed is list of
dicts.
['title': {'type': 'type/string', 'unique': True, 'description':''},
'body' : {'type': 'type/text', 'unique':True, 'description': ''}]
I think plist kind of format suits better than above flat format.
<entry xmlns="http:// www.w3. org/2005/ Atom"> name</key> type/page< /string> created< /key> >2006-01- 23T16:26: 03-08:00< /timestamp> author< /key> user/anand< /ref> type</key> type/type< /ref> revision< /key> data</key>
<key> description< /key>
<string> </string>
<key> is_primitive< /string>
<boolean> false</ boolean>
<key> properties< /key>
< key>title< /key>
<key> type</key>
<ref> type/string< /ref>
<key> unique< /key>
<boolean> true</ref>
<key> description< /key>
<string> </string>
< /dict>
< key>body< /key>
<key> type</key>
<ref> type/text< /ref>
<key> unique< /key>
<boolean> true</ref>
<key> description< /key>
<string> </string>
< /dict>
<key>
<string>
<key>
<timestamp
<key>
<ref>
<key>
<ref>
<key>
<int>7</int>
<key>
<dict>
<list>
<dict>
<dict>
</list>
</entry>