views:

182

answers:

1

I want to get the XML in atom format of a GoogleDocs spreadsheet using the [generateAtom(..,..)][1] method of the class BaseEntry which a SpreadsheetEntry inherits. But I don't understand the the second parameter in the method, ExtensionProfile. What is it and will this method call suffice if I just want to get the XML in atom format?

XmlWriter x = new XmlWriter();
spreadSheetEntry.generateAtom(x,new ExtensionProfile());

[1]: http://code.google.com/apis/gdata/javadoc/com/google/gdata/data/BaseEntry.html#generateAtom%28com.google.gdata.util.common.xml.XmlWriter, com.google.gdata.data.ExtensionProfile)

+1  A: 

From the JavaDoc for ExtensionProfile:

A profile is a set of allowed extensions for each type together with additional properties.

Usually if you've got a service, you can ask that for its extension profile using Service.getExtensionProfile().

Jon Skeet