I've seen many times xml in rest web services, having the following format:
<author>
<atom:link rel="author" type="application/xml" href="http://www.../author/1"/>
</author>
and the url (http://www.../author/1) will contain something like this:
<author xmlns="http://www.../ckp" xmlns:atom="http://www.w3.org/2005/atom">
<name>S. Crocker</name>
<address>None</address>
<affiliation></affiliation>
<email>None</email>
</author>
- I was wondering why the first form of xml is being used?
- How can these be modeled on a java model class (using the mvc pattern)?