What steps will reproduce the problem?
1.initialize a new GsaEntry, set its Id, and add a TWO GsaContents
entry.addGsaContent("updateMethod", "append");
entry.addGsaContent("newLines", newLines);
2.generate xml from the entry and save to file -- entry.generate(xmlWriter,
extProfile)
3.use the generated XML to construct a GsaEntry
ParseSource source = new ParseSource(new FileInputStream(xmlFile));
GsaEntry entryFromXml = GsaEntry.readEntry(source, GsaEntry.class, new
ExtensionProfile());
4. System.out.println(entryFromXml.getAllGsaContents().size());
What is the expected output? What do you see instead?
Expected = 2
Actual = 0
What version of the product are you using? On what operating system?
I am using 6.2 gdata api on a windows xp environment
Please provide any additional information below.
I am not sure if this is a bug or a correct behavior.
if it is the correct behavior, how can one get GsaContents from GsaEntry
objects parsed from xml
thanks,
abel
Original issue reported on code.google.com by
geta...@gmail.comon 19 May 2010 at 7:44