From 869c27f0bb5211054088eaf03617a08d99221027 Mon Sep 17 00:00:00 2001 From: horuga23 Date: Fri, 11 Jun 2010 15:34:41 +0200 Subject: [PATCH] Using GData 3.0 gd:structuredPostalAddress/gd:formattedAddress instead of gd:postalAddress. --- src/atom_parser.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/atom_parser.c b/src/atom_parser.c index 9b6a22b..85ec482 100644 --- a/src/atom_parser.c +++ b/src/atom_parser.c @@ -733,11 +733,15 @@ int atom_extract_contact(xmlNode *entry, struct gcal_contact *ptr_entry) &ptr_entry->phone_numbers_field, &ptr_entry->phone_numbers_type, NULL); - - /* Gets contact postal address */ + + /* The 'postalAddress' contact field changed in GData-Version: 3.0 API, see: + * http://code.google.com/intl/en-EN/apis/contacts/docs/3.0/ + * migration_guide.html#Protocol + */ ptr_entry->post_address = extract_and_check(doc, "//atom:entry/" - "gd:postalAddress/text()", + "gd:structuredPostalAddress/" + "gd:formattedAddress/text()", NULL); /* Gets contact structured postal addressees (Google API 3.0) */ -- 2.11.4.GIT