ドキュメントのキーで特定のドキュメントを取得しようとしています。私はここの指示に従っています:https ://code.google.com/apis/spreadsheets/data/3.0/reference.html#ConstructingURIs
次のURLからキーを取得します:https ://spreadsheets.google.com/ccc?key = 0Aoz ... mcmc&hl = en#gid = 0
URL feedUrl = new URL("https://spreadsheets.google.com/feeds/spreadsheets/private/full/0Aoz...mcmc");
SpreadsheetFeed feed = _service.getFeed(feedUrl, SpreadsheetFeed.class);
_entry = feed.getEntries().get(0);
それは私に次の例外を与えます:
Exception in thread "main" com.google.gdata.util.ParseException: [Line 1, Column 165]
Invalid root element, expected (namespace uri:local name) of (http://www.w3.org/2005/Atom:feed),
found (http://www.w3.org/2005/Atom:entry
例外はあまり意味がありません。タグをルートにしたいと思いますが、取得しています。使用しているURLにアクセスすると、feedUrl
必要なXMLドキュメントが表示されます(目的のドキュメントの名前とすべての名前が含まれています)。私はここで何が間違っているのかわかりませんし、私を助けることができたものをオンラインで見つけることができません。
誰かが私が間違っているのを見ますか?