[libgdata] [core] Corrected uses of deprecated libxml API



commit 54819628cbf2c1a4d1a907dac0d9f3aee6628e88
Author: Philip Withnall <philip tecnocode co uk>
Date:   Mon Apr 27 19:39:19 2009 +0100

    [core] Corrected uses of deprecated libxml API
---
 gdata/gdata-entry.c                               |   20 +++++++-------
 gdata/gdata-feed.c                                |   28 ++++++++++----------
 gdata/services/calendar/gdata-calendar-calendar.c |    2 +-
 gdata/services/calendar/gdata-calendar-event.c    |    6 ++--
 gdata/services/contacts/gdata-contacts-contact.c  |   12 ++++----
 gdata/services/youtube/gdata-youtube-service.c    |   10 +++---
 gdata/services/youtube/gdata-youtube-video.c      |   26 +++++++++---------
 7 files changed, 52 insertions(+), 52 deletions(-)

diff --git a/gdata/gdata-entry.c b/gdata/gdata-entry.c
index 672462b..2a16c64 100644
--- a/gdata/gdata-entry.c
+++ b/gdata/gdata-entry.c
@@ -421,7 +421,7 @@ _gdata_entry_new_from_xml_node (GType entry_type, xmlDoc *doc, xmlNode *node, GE
 	/* Get the ETag first */
 	entry->priv->etag = (gchar*) xmlGetProp (node, (xmlChar*) "etag");
 
-	node = node->xmlChildrenNode;
+	node = node->children;
 	while (node != NULL) {
 		if (klass->parse_xml (entry, doc, node, error) == FALSE) {
 			g_object_unref (entry);
@@ -442,7 +442,7 @@ real_parse_xml (GDataEntry *self, xmlDoc *doc, xmlNode *node, GError **error)
 
 	if (xmlStrcmp (node->name, (xmlChar*) "title") == 0) {
 		/* atom:title */
-		xmlChar *title = xmlNodeListGetString (doc, node->xmlChildrenNode, TRUE);
+		xmlChar *title = xmlNodeListGetString (doc, node->children, TRUE);
 
 		/* Title can be empty */
 		if (title == NULL)
@@ -453,12 +453,12 @@ real_parse_xml (GDataEntry *self, xmlDoc *doc, xmlNode *node, GError **error)
 	} else if (xmlStrcmp (node->name, (xmlChar*) "id") == 0) {
 		/* atom:id */
 		xmlFree (self->priv->id);
-		self->priv->id = (gchar*) xmlNodeListGetString (doc, node->xmlChildrenNode, TRUE);
+		self->priv->id = (gchar*) xmlNodeListGetString (doc, node->children, TRUE);
 	} else if (xmlStrcmp (node->name, (xmlChar*) "updated") == 0) {
 		/* atom:updated */
 		xmlChar *updated;
 
-		updated = xmlNodeListGetString (doc, node->xmlChildrenNode, TRUE);
+		updated = xmlNodeListGetString (doc, node->children, TRUE);
 		if (g_time_val_from_iso8601 ((gchar*) updated, &(self->priv->updated)) == FALSE) {
 			/* Error */
 			gdata_parser_error_not_iso8601_format ("updated", "entry", (gchar*) updated, error);
@@ -470,7 +470,7 @@ real_parse_xml (GDataEntry *self, xmlDoc *doc, xmlNode *node, GError **error)
 		/* atom:published */
 		xmlChar *published;
 
-		published = xmlNodeListGetString (doc, node->xmlChildrenNode, TRUE);
+		published = xmlNodeListGetString (doc, node->children, TRUE);
 		if (g_time_val_from_iso8601 ((gchar*) published, &(self->priv->published)) == FALSE) {
 			/* Error */
 			gdata_parser_error_not_iso8601_format ("published", "entry", (gchar*) published, error);
@@ -495,7 +495,7 @@ real_parse_xml (GDataEntry *self, xmlDoc *doc, xmlNode *node, GError **error)
 		xmlFree (label);
 	} else if (xmlStrcmp (node->name, (xmlChar*) "content") == 0) {
 		/* atom:content */
-		xmlChar *content = xmlNodeListGetString (doc, node->xmlChildrenNode, TRUE);
+		xmlChar *content = xmlNodeListGetString (doc, node->children, TRUE);
 		if (content == NULL)
 			content = xmlGetProp (node, (xmlChar*) "src");
 		gdata_entry_set_content (self, (gchar*) content);
@@ -534,14 +534,14 @@ real_parse_xml (GDataEntry *self, xmlDoc *doc, xmlNode *node, GError **error)
 		xmlNode *author_node;
 		xmlChar *name = NULL, *uri = NULL, *email = NULL;
 
-		author_node = node->xmlChildrenNode;
+		author_node = node->children;
 		while (author_node != NULL) {
 			if (xmlStrcmp (author_node->name, (xmlChar*) "name") == 0) {
-				name = xmlNodeListGetString (doc, author_node->xmlChildrenNode, TRUE);
+				name = xmlNodeListGetString (doc, author_node->children, TRUE);
 			} else if (xmlStrcmp (author_node->name, (xmlChar*) "uri") == 0) {
-				uri = xmlNodeListGetString (doc, author_node->xmlChildrenNode, TRUE);
+				uri = xmlNodeListGetString (doc, author_node->children, TRUE);
 			} else if (xmlStrcmp (author_node->name, (xmlChar*) "email") == 0) {
-				email = xmlNodeListGetString (doc, author_node->xmlChildrenNode, TRUE);
+				email = xmlNodeListGetString (doc, author_node->children, TRUE);
 			} else {
 				gdata_parser_error_unhandled_element ((gchar*) author_node->ns->prefix, (gchar*) author_node->name, "author", error);
 				xmlFree (name);
diff --git a/gdata/gdata-feed.c b/gdata/gdata-feed.c
index d4632d2..6ad948e 100644
--- a/gdata/gdata-feed.c
+++ b/gdata/gdata-feed.c
@@ -425,7 +425,7 @@ _gdata_feed_new_from_xml (const gchar *xml, gint length, GType entry_type,
 	etag = xmlGetProp (node, (xmlChar*) "etag");
 
 	extra_xml = g_string_new ("");
-	node = node->xmlChildrenNode;
+	node = node->children;
 	while (node != NULL) {
 		if (xmlStrcmp (node->name, (xmlChar*) "entry") == 0) {
 			/* atom:entry */
@@ -459,7 +459,7 @@ _gdata_feed_new_from_xml (const gchar *xml, gint length, GType entry_type,
 				goto error;
 			}
 
-			title = xmlNodeListGetString (doc, node->xmlChildrenNode, TRUE);
+			title = xmlNodeListGetString (doc, node->children, TRUE);
 		} else if (xmlStrcmp (node->name, (xmlChar*) "subtitle") == 0) {
 			/* atom:subtitle */
 			if (subtitle != NULL) {
@@ -467,7 +467,7 @@ _gdata_feed_new_from_xml (const gchar *xml, gint length, GType entry_type,
 				goto error;
 			}
 
-			subtitle = xmlNodeListGetString (doc, node->xmlChildrenNode, TRUE);
+			subtitle = xmlNodeListGetString (doc, node->children, TRUE);
 		} else if (xmlStrcmp (node->name, (xmlChar*) "id") == 0) {
 			/* atom:id */
 			if (id != NULL) {
@@ -475,7 +475,7 @@ _gdata_feed_new_from_xml (const gchar *xml, gint length, GType entry_type,
 				goto error;
 			}
 
-			id = xmlNodeListGetString (doc, node->xmlChildrenNode, TRUE);
+			id = xmlNodeListGetString (doc, node->children, TRUE);
 		} else if (xmlStrcmp (node->name, (xmlChar*) "updated") == 0) {
 			/* atom:updated */
 			xmlChar *updated_string;
@@ -487,7 +487,7 @@ _gdata_feed_new_from_xml (const gchar *xml, gint length, GType entry_type,
 			}
 
 			/* Parse the string */
-			updated_string = xmlNodeListGetString (doc, node->xmlChildrenNode, TRUE);
+			updated_string = xmlNodeListGetString (doc, node->children, TRUE);
 			if (g_time_val_from_iso8601 ((gchar*) updated_string, &updated) == FALSE) {
 				gdata_parser_error_not_iso8601_format ("updated", "feed", (gchar*) updated_string, error);
 				xmlFree (updated_string);
@@ -517,7 +517,7 @@ _gdata_feed_new_from_xml (const gchar *xml, gint length, GType entry_type,
 				goto error;
 			}
 
-			logo = xmlNodeListGetString (doc, node->xmlChildrenNode, TRUE);
+			logo = xmlNodeListGetString (doc, node->children, TRUE);
 		} else if (xmlStrcmp (node->name, (xmlChar*) "link") == 0) {
 			/* atom:link */
 			xmlChar *href, *rel, *type, *hreflang, *link_title, *link_length;
@@ -551,14 +551,14 @@ _gdata_feed_new_from_xml (const gchar *xml, gint length, GType entry_type,
 			xmlNode *author_node;
 			xmlChar *name = NULL, *uri = NULL, *email = NULL;
 
-			author_node = node->xmlChildrenNode;
+			author_node = node->children;
 			while (author_node != NULL) {
 				if (xmlStrcmp (author_node->name, (xmlChar*) "name") == 0) {
-					name = xmlNodeListGetString (doc, author_node->xmlChildrenNode, TRUE);
+					name = xmlNodeListGetString (doc, author_node->children, TRUE);
 				} else if (xmlStrcmp (author_node->name, (xmlChar*) "uri") == 0) {
-					uri = xmlNodeListGetString (doc, author_node->xmlChildrenNode, TRUE);
+					uri = xmlNodeListGetString (doc, author_node->children, TRUE);
 				} else if (xmlStrcmp (author_node->name, (xmlChar*) "email") == 0) {
-					email = xmlNodeListGetString (doc, author_node->xmlChildrenNode, TRUE);
+					email = xmlNodeListGetString (doc, author_node->children, TRUE);
 				} else {
 					gdata_parser_error_unhandled_element ((gchar*) author_node->ns->prefix, (gchar*) author_node->name, "author", error);
 					xmlFree (name);
@@ -587,7 +587,7 @@ _gdata_feed_new_from_xml (const gchar *xml, gint length, GType entry_type,
 			}
 
 			/* Parse the element's parameters */
-			name = xmlNodeListGetString (doc, node->xmlChildrenNode, TRUE);
+			name = xmlNodeListGetString (doc, node->children, TRUE);
 			uri = xmlGetProp (node, (xmlChar*) "uri");
 			version = xmlGetProp (node, (xmlChar*) "version");
 
@@ -607,7 +607,7 @@ _gdata_feed_new_from_xml (const gchar *xml, gint length, GType entry_type,
 			}
 
 			/* Parse the number */
-			total_results_string = xmlNodeListGetString (doc, node->xmlChildrenNode, TRUE);
+			total_results_string = xmlNodeListGetString (doc, node->children, TRUE);
 			if (total_results_string == NULL) {
 				gdata_parser_error_required_content_missing ("openSearch:totalResults", error);
 				goto error;
@@ -627,7 +627,7 @@ _gdata_feed_new_from_xml (const gchar *xml, gint length, GType entry_type,
 
 			/* Parse the number */
 
-			start_index_string = xmlNodeListGetString (doc, node->xmlChildrenNode, TRUE);
+			start_index_string = xmlNodeListGetString (doc, node->children, TRUE);
 			if (start_index_string == NULL) {
 				gdata_parser_error_required_content_missing ("openSearch:startIndex", error);
 				goto error;
@@ -646,7 +646,7 @@ _gdata_feed_new_from_xml (const gchar *xml, gint length, GType entry_type,
 			}
 
 			/* Parse the number */
-			items_per_page_string = xmlNodeListGetString (doc, node->xmlChildrenNode, TRUE);
+			items_per_page_string = xmlNodeListGetString (doc, node->children, TRUE);
 			if (items_per_page_string == NULL) {
 				gdata_parser_error_required_content_missing ("openSearch:itemsPerPage", error);
 				goto error;
diff --git a/gdata/services/calendar/gdata-calendar-calendar.c b/gdata/services/calendar/gdata-calendar-calendar.c
index 316c2b8..db436ba 100644
--- a/gdata/services/calendar/gdata-calendar-calendar.c
+++ b/gdata/services/calendar/gdata-calendar-calendar.c
@@ -347,7 +347,7 @@ parse_xml (GDataEntry *entry, xmlDoc *doc, xmlNode *node, GError **error)
 			return gdata_parser_error_required_property_missing ("gCal:accesslevel", "value", error);
 	} else if (xmlStrcmp (node->name, (xmlChar*) "edited") == 0) {
 		/* app:edited */
-		xmlChar *edited = xmlNodeListGetString (doc, node->xmlChildrenNode, TRUE);
+		xmlChar *edited = xmlNodeListGetString (doc, node->children, TRUE);
 		if (g_time_val_from_iso8601 ((gchar*) edited, &(self->priv->edited)) == FALSE) {
 			/* Error */
 			gdata_parser_error_not_iso8601_format ("app:edited", "entry", (gchar*) edited, error);
diff --git a/gdata/services/calendar/gdata-calendar-event.c b/gdata/services/calendar/gdata-calendar-event.c
index 1ef5e30..f5fe524 100644
--- a/gdata/services/calendar/gdata-calendar-event.c
+++ b/gdata/services/calendar/gdata-calendar-event.c
@@ -452,7 +452,7 @@ parse_xml (GDataEntry *entry, xmlDoc *doc, xmlNode *node, GError **error)
 
 	if (xmlStrcmp (node->name, (xmlChar*) "edited") == 0) {
 		/* app:edited */
-		xmlChar *edited = xmlNodeListGetString (doc, node->xmlChildrenNode, TRUE);
+		xmlChar *edited = xmlNodeListGetString (doc, node->children, TRUE);
 		if (g_time_val_from_iso8601 ((gchar*) edited, &(self->priv->edited)) == FALSE) {
 			/* Error */
 			gdata_parser_error_not_iso8601_format ("app:edited", "entry", (gchar*) edited, error);
@@ -468,7 +468,7 @@ parse_xml (GDataEntry *entry, xmlDoc *doc, xmlNode *node, GError **error)
 		/*GDataGDFeedLink *feed_link;*/
 
 		/* This is actually the child of the <comments> element */
-		child_node = node->xmlChildrenNode;
+		child_node = node->children;
 
 		count_hint = xmlGetProp (child_node, (xmlChar*) "countHint");
 		if (count_hint == NULL)
@@ -634,7 +634,7 @@ parse_xml (GDataEntry *entry, xmlDoc *doc, xmlNode *node, GError **error)
 		gdata_calendar_event_add_place (self, where);
 	} else if (xmlStrcmp (node->name, (xmlChar*) "recurrence") == 0) {
 		/* gd:recurrence */
-		xmlChar *recurrence = xmlNodeListGetString (doc, node->xmlChildrenNode, TRUE);
+		xmlChar *recurrence = xmlNodeListGetString (doc, node->children, TRUE);
 		gdata_calendar_event_set_recurrence (self, (gchar*) recurrence);
 		xmlFree (recurrence);
 	} else if (xmlStrcmp (node->name, (xmlChar*) "originalEvent") == 0) {
diff --git a/gdata/services/contacts/gdata-contacts-contact.c b/gdata/services/contacts/gdata-contacts-contact.c
index 1ed79de..d65b577 100644
--- a/gdata/services/contacts/gdata-contacts-contact.c
+++ b/gdata/services/contacts/gdata-contacts-contact.c
@@ -216,7 +216,7 @@ parse_xml (GDataEntry *entry, xmlDoc *doc, xmlNode *node, GError **error)
 	if (xmlStrcmp (node->name, (xmlChar*) "edited") == 0) {
 		/* app:edited */
 		/* TODO: Should be in GDataEntry? */
-		xmlChar *edited = xmlNodeListGetString (doc, node->xmlChildrenNode, TRUE);
+		xmlChar *edited = xmlNodeListGetString (doc, node->children, TRUE);
 		if (g_time_val_from_iso8601 ((gchar*) edited, &(self->priv->edited)) == FALSE) {
 			/* Error */
 			gdata_parser_error_not_iso8601_format ("app:edited", "entry", (gchar*) edited, error);
@@ -304,7 +304,7 @@ parse_xml (GDataEntry *entry, xmlDoc *doc, xmlNode *node, GError **error)
 		gboolean primary_bool;
 		GDataGDPhoneNumber *phone_number;
 
-		number = xmlNodeListGetString (doc, node->xmlChildrenNode, TRUE);
+		number = xmlNodeListGetString (doc, node->children, TRUE);
 		if (number == NULL)
 			return gdata_parser_error_required_content_missing ("gd:phoneNumber", error);
 
@@ -342,7 +342,7 @@ parse_xml (GDataEntry *entry, xmlDoc *doc, xmlNode *node, GError **error)
 		gboolean primary_bool;
 		GDataGDPostalAddress *postal_address;
 
-		address = xmlNodeListGetString (doc, node->xmlChildrenNode, TRUE);
+		address = xmlNodeListGetString (doc, node->children, TRUE);
 		if (address == NULL)
 			return gdata_parser_error_required_content_missing ("gd:postalAddress", error);
 
@@ -379,7 +379,7 @@ parse_xml (GDataEntry *entry, xmlDoc *doc, xmlNode *node, GError **error)
 		GDataGDOrganization *organization;
 		xmlNode *child_node;
 
-		for (child_node = node->xmlChildrenNode; child_node != NULL; child_node = child_node->next) {
+		for (child_node = node->children; child_node != NULL; child_node = child_node->next) {
 			if (xmlStrcmp (child_node->name, (xmlChar*) "orgName") == 0) {
 				/* gd:orgName */
 				if (name != NULL) {
@@ -387,7 +387,7 @@ parse_xml (GDataEntry *entry, xmlDoc *doc, xmlNode *node, GError **error)
 					xmlFree (title);
 					return gdata_parser_error_duplicate_element ("gd:orgName", "gd:organization", error);
 				}
-				name = xmlNodeListGetString (doc, child_node->xmlChildrenNode, TRUE);
+				name = xmlNodeListGetString (doc, child_node->children, TRUE);
 			} else if (xmlStrcmp (child_node->name, (xmlChar*) "orgTitle") == 0) {
 				/* gd:orgTitle */
 				if (title != NULL) {
@@ -395,7 +395,7 @@ parse_xml (GDataEntry *entry, xmlDoc *doc, xmlNode *node, GError **error)
 					xmlFree (title);
 					return gdata_parser_error_duplicate_element ("gd:orgTitle", "gd:organization", error);
 				}
-				title = xmlNodeListGetString (doc, child_node->xmlChildrenNode, TRUE);
+				title = xmlNodeListGetString (doc, child_node->children, TRUE);
 			} else {
 				/* Error */
 				gdata_parser_error_unhandled_element ((gchar*) child_node->ns->prefix, (gchar*) child_node->name,
diff --git a/gdata/services/youtube/gdata-youtube-service.c b/gdata/services/youtube/gdata-youtube-service.c
index b0d6302..b075f77 100644
--- a/gdata/services/youtube/gdata-youtube-service.c
+++ b/gdata/services/youtube/gdata-youtube-service.c
@@ -253,10 +253,10 @@ parse_error_response (GDataService *self, guint status, const gchar *reason_phra
 	}
 
 	/* Parse the actual errors */
-	node = node->xmlChildrenNode;
+	node = node->children;
 	while (node != NULL) {
 		xmlChar *domain = NULL, *code = NULL, *location = NULL;
-		xmlNode *child_node = node->xmlChildrenNode;
+		xmlNode *child_node = node->children;
 
 		if (node->type == XML_TEXT_NODE) {
 			/* Skip text nodes; they're all whitespace */
@@ -273,11 +273,11 @@ parse_error_response (GDataService *self, guint status, const gchar *reason_phra
 			}
 
 			if (xmlStrcmp (child_node->name, (xmlChar*) "domain") == 0)
-				domain = xmlNodeListGetString (doc, child_node->xmlChildrenNode, TRUE);
+				domain = xmlNodeListGetString (doc, child_node->children, TRUE);
 			else if (xmlStrcmp (child_node->name, (xmlChar*) "code") == 0)
-				code = xmlNodeListGetString (doc, child_node->xmlChildrenNode, TRUE);
+				code = xmlNodeListGetString (doc, child_node->children, TRUE);
 			else if (xmlStrcmp (child_node->name, (xmlChar*) "location") == 0)
-				location = xmlNodeListGetString (doc, child_node->xmlChildrenNode, TRUE);
+				location = xmlNodeListGetString (doc, child_node->children, TRUE);
 			else if (xmlStrcmp (child_node->name, (xmlChar*) "internalReason") != 0) {
 				/* Unknown element (ignore internalReason) */
 				if (*error == NULL) {
diff --git a/gdata/services/youtube/gdata-youtube-video.c b/gdata/services/youtube/gdata-youtube-video.c
index 9c07f54..f7e421e 100644
--- a/gdata/services/youtube/gdata-youtube-video.c
+++ b/gdata/services/youtube/gdata-youtube-video.c
@@ -573,17 +573,17 @@ parse_media_group_xml_node (GDataYouTubeVideo *self, xmlDoc *doc, xmlNode *node,
 {
 	if (xmlStrcmp (node->name, (xmlChar*) "title") == 0) {
 		/* media:title */
-		xmlChar *title = xmlNodeListGetString (doc, node->xmlChildrenNode, TRUE);
+		xmlChar *title = xmlNodeListGetString (doc, node->children, TRUE);
 		gdata_youtube_video_set_title (self, (gchar*) title);
 		xmlFree (title);
 	} else if (xmlStrcmp (node->name, (xmlChar*) "description") == 0) {
 		/* media:description */
-		xmlChar *description = xmlNodeListGetString (doc, node->xmlChildrenNode, TRUE);
+		xmlChar *description = xmlNodeListGetString (doc, node->children, TRUE);
 		gdata_youtube_video_set_description (self, (gchar*) description);
 		xmlFree (description);
 	} else if (xmlStrcmp (node->name, (xmlChar*) "keywords") == 0) {
 		/* media:keywords */
-		xmlChar *keywords = xmlNodeListGetString (doc, node->xmlChildrenNode, TRUE);
+		xmlChar *keywords = xmlNodeListGetString (doc, node->children, TRUE);
 		gdata_youtube_video_set_keywords (self, (gchar*) keywords);
 		xmlFree (keywords);
 	} else if (xmlStrcmp (node->name, (xmlChar*) "category") == 0) {
@@ -593,7 +593,7 @@ parse_media_group_xml_node (GDataYouTubeVideo *self, xmlDoc *doc, xmlNode *node,
 
 		scheme = xmlGetProp (node, (xmlChar*) "scheme");
 		label = xmlGetProp (node, (xmlChar*) "label");
-		content = xmlNodeListGetString (doc, node->xmlChildrenNode, TRUE);
+		content = xmlNodeListGetString (doc, node->children, TRUE);
 
 		category = gdata_media_category_new ((gchar*) content, (gchar*) scheme, (gchar*) label);
 		gdata_youtube_video_set_category (self, category);
@@ -674,7 +674,7 @@ parse_media_group_xml_node (GDataYouTubeVideo *self, xmlDoc *doc, xmlNode *node,
 			return FALSE;
 		}
 
-		content = xmlNodeListGetString (doc, node->xmlChildrenNode, TRUE);
+		content = xmlNodeListGetString (doc, node->children, TRUE);
 
 		gdata_media_credit_free (self->priv->credit);
 		self->priv->credit = gdata_media_credit_new ((gchar*) content, (type != NULL) ? TRUE : FALSE);
@@ -718,7 +718,7 @@ parse_media_group_xml_node (GDataYouTubeVideo *self, xmlDoc *doc, xmlNode *node,
 		}
 		xmlFree (type);
 
-		countries = xmlNodeListGetString (doc, node->xmlChildrenNode, TRUE);
+		countries = xmlNodeListGetString (doc, node->children, TRUE);
 		relationship = xmlGetProp (node, (xmlChar*) "relationship");
 
 		if (xmlStrcmp (relationship, (xmlChar*) "allow") == 0)
@@ -792,7 +792,7 @@ parse_media_group_xml_node (GDataYouTubeVideo *self, xmlDoc *doc, xmlNode *node,
 		xmlChar *uploaded;
 		GTimeVal uploaded_timeval;
 
-		uploaded = xmlNodeListGetString (doc, node->xmlChildrenNode, TRUE);
+		uploaded = xmlNodeListGetString (doc, node->children, TRUE);
 		if (g_time_val_from_iso8601 ((gchar*) uploaded, &uploaded_timeval) == FALSE) {
 			/* Error */
 			gdata_parser_error_not_iso8601_format ("uploaded", "media:group", (gchar*) uploaded, error);
@@ -805,7 +805,7 @@ parse_media_group_xml_node (GDataYouTubeVideo *self, xmlDoc *doc, xmlNode *node,
 		g_object_notify (G_OBJECT (self), "uploaded");
 	} else if (xmlStrcmp (node->name, (xmlChar*) "videoid") == 0) {
 		/* yt:videoid */
-		xmlChar *video_id = xmlNodeListGetString (doc, node->xmlChildrenNode, TRUE);
+		xmlChar *video_id = xmlNodeListGetString (doc, node->children, TRUE);
 		g_free (self->priv->video_id);
 		self->priv->video_id = g_strdup ((gchar*) video_id);
 		g_object_notify (G_OBJECT (self), "video-id");
@@ -830,7 +830,7 @@ parse_xml (GDataEntry *entry, xmlDoc *doc, xmlNode *node, GError **error)
 		/* media:group */
 		xmlNode *child_node;
 
-		child_node = node->xmlChildrenNode;
+		child_node = node->children;
 		while (child_node != NULL) {
 			if (parse_media_group_xml_node (self, doc, child_node, error) == FALSE)
 				return FALSE;
@@ -882,7 +882,7 @@ parse_xml (GDataEntry *entry, xmlDoc *doc, xmlNode *node, GError **error)
 		/*GDataGDFeedLink *feed_link;*/
 
 		/* This is actually the child of the <comments> element */
-		child_node = node->xmlChildrenNode;
+		child_node = node->children;
 
 		count_hint = xmlGetProp (child_node, (xmlChar*) "countHint");
 		if (count_hint == NULL)
@@ -922,7 +922,7 @@ parse_xml (GDataEntry *entry, xmlDoc *doc, xmlNode *node, GError **error)
 		xmlFree (favorite_count);
 	} else if (xmlStrcmp (node->name, (xmlChar*) "location") == 0) {
 		/* yt:location */
-		xmlChar *location = xmlNodeListGetString (doc, node->xmlChildrenNode, TRUE);
+		xmlChar *location = xmlNodeListGetString (doc, node->children, TRUE);
 		gdata_youtube_video_set_location (self, (gchar*) location);
 		xmlFree (location);
 	} else if (xmlStrcmp (node->name, (xmlChar*) "where") == 0) {
@@ -938,7 +938,7 @@ parse_xml (GDataEntry *entry, xmlDoc *doc, xmlNode *node, GError **error)
 		/* app:control */
 		xmlNode *child_node;
 
-		child_node = node->xmlChildrenNode;
+		child_node = node->children;
 		while (child_node != NULL) {
 			if (xmlStrcmp (child_node->name, (xmlChar*) "draft") == 0) {
 				/* app:draft */
@@ -951,7 +951,7 @@ parse_xml (GDataEntry *entry, xmlDoc *doc, xmlNode *node, GError **error)
 				if (name == NULL)
 					return gdata_parser_error_required_property_missing ("yt:state", "name", error);
 
-				message = xmlNodeListGetString (doc, child_node->xmlChildrenNode, TRUE);
+				message = xmlNodeListGetString (doc, child_node->children, TRUE);
 				reason_code = xmlGetProp (child_node, (xmlChar*) "reasonCode");
 				help_uri = xmlGetProp (child_node, (xmlChar*) "helpUrl");
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]