Hi everyone, I've a problem with creating REST robots.
My robot
http://service.openkapow.com/frankieta/extractlt1303.rest extracts information (title, tags assigned from users) about books.
N.B (I refer to tags as to the metadata assigned from users to books and not to the html tags!)The output for a sample book in xml is something like
<result>
<book>
<title>The Da Vinci code</title>
<tag>Action</tag>
<occurrence>20</occurrence>
<review/>
</book>
<book>
<title>The Da Vinci code</title>
<tag>Adventure</tag>
<occurrence>49</occurrence>
<review/>
</book>etc.., a serie of blocks like this, with the title repeated over and over for each tag extracted.
I want my xml to be more structured like so I can use it better in my apps:
<book>
<title> The Da Vinci Code</title>
<tags>
<tag>
<tagname>....</tagname>
<occurrence>....</occurrence>
</tag>
<tag>
<tagname>....</tagname>
<occurrence>....</occurrence>
</tag>
</book>Is there anyone who knows a way to structure the xml output of my robot???
Any help wold be greatly appreciated!
Thanks in advance!