I managed to get the raw XML representation:
for (GoogleBaseEntry entry : entries) {
try {
entry.generateAtom(w,
m_gService.getExtensionProfile());
System.out.println(":"+writer.toString()+":");
} catch (IOException e) {
e.printStackTrace();
System.exit(-1);
}
}
Thanks :)
On Jul 5, 9:35 pm, Hei <[email protected]> wrote:
> Hi,
>
> I am using gdata-java-client #417.
>
> I am trying to follow the example
> inhttp://code.google.com/apis/base/docs/2.0/developers_guide_java.html.
>
> I am trying to figure out how I can get the raw xml representation
> from a GoogleBaseEntry.
>
> I tried to call GoogleBaseEntry.getXmlBlob(), but it has nothing
> there.
>
> I read the java doc, and it seems that I am supposed to call
> GoogleBaseEntry.generateCumulativeXmlBlob()? If yes, could someone
> give me a point to how to initialize ExtensionProfile?
>
> Thanks in advance.
--
You received this message because you are subscribed to the Google Groups
"Google Base Data API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-base-data-api?hl=en.