Hello,
I fixed this issues. You have the last version in the repository.
Only a summary.
XmlContent is an implementation of IContent, the attribute id is the syncID, this attribute is used for adapters to
associate content with sync (see SplitAdapter), in the case of FeedAdapter this value is in sx:sync element.
Code example:
String syncID = "123";
Element element = makeElement("<payload><texte>Salut !</texte></payload>");
XMLContent content = new XMLContent(syncID, "title", "description", element);
Item item = new Item(content, new Sync(syncID, "odelia", new Date(), false));
The title and description attributes (in the java version) are shortcuts to the payload elements Title and Description.
When a feed is read if the item payload have a title/description its values are set in the xmlContent.
But, when I read your necessity and real use, I change this idea, Now, FeedWriter write this values in the following way:
Title:
add Title element if the xmlContent has a title and element does not exists in the payload.
update Title element if the xmlContent has a title and element exists in the payload.
delete Title element if the xmlContent has not a title and element exists in the payload.
Description:
add Description element if the xmlContent has a description and element does not exists in the payload.
update Description element if the xmlContent has a description and element exists in the payload.
delete Description element if the xmlContent has not a description and element exists in the payload.
What do you think?
Thanks for your feedback,
JMT