You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Piriti
I'm new user to your Piriti Parser and I have some doubts.
I haven't problem with parse XML to POJO. That work ok, but when I
want parse POJO to XML, problems begin.
In the first place, I want parse the atribute isbn and reviews in the
follow code:
public class Book
{
interface BookReader extends XmlReader<Book> {}
public static final BookReader XML = GWT.create(BookReader.class);
public interface BookWriter extends XmlWriter<Book> {}
public static final BookWriter WRITER =
GWT.create(BookWriter.class);
@Path("@isbn") String isbn;
@Path("reviews/review") List<String> reviews;
}
--------------------------------------------------
I hope the following result:
<book isbn="978-0345417954">
<reviews>
.
.
</reviews>
</book>
but the result is:
<book>
<reviews/review>
.
.
</reviews/review>
</book>
ISBN is lost and the tags reviews and review too
I want to know if I'm doing something wrong and the right way to do
this.
Many thanks
Harald Pehl
unread,
Mar 15, 2012, 11:24:03 AM3/15/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to pir...@googlegroups.com
Your code looks ok. I will check this and let you know what I found out...
- Harald
Jonatan Mayorano
unread,
Mar 15, 2012, 11:52:27 AM3/15/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message