gtranslator r3774 - trunk/src



Author: icq
Date: Mon Sep 22 09:47:49 2008
New Revision: 3774
URL: http://svn.gnome.org/viewvc/gtranslator?rev=3774&view=rev

Log:
2008-09-08  SeÃn de BÃrca  <leftmostcat gmail com>

        * profile.c: Make sure we don't make an illegal XML file.

Modified:
   trunk/src/ChangeLog
   trunk/src/profile.c

Modified: trunk/src/profile.c
==============================================================================
--- trunk/src/profile.c	(original)
+++ trunk/src/profile.c	Mon Sep 22 09:47:49 2008
@@ -242,15 +242,15 @@
 	
 	root = xmlDocGetRootElement (doc);
 	profile_node = xmlNewChild (root, NULL, "profile", NULL);
-	xmlNewChild (profile_node, NULL, "profile_name", profile->priv->name);
-	xmlNewChild (profile_node, NULL, "author_name", profile->priv->author_name);
-	xmlNewChild (profile_node, NULL, "autor_email", profile->priv->author_email);
-	xmlNewChild (profile_node, NULL, "language_name", profile->priv->language_name);
-	xmlNewChild (profile_node, NULL, "language_code", profile->priv->language_code);
-	xmlNewChild (profile_node, NULL, "charset", profile->priv->charset);
-	xmlNewChild (profile_node, NULL, "encoding", profile->priv->encoding);
-	xmlNewChild (profile_node, NULL, "group_email", profile->priv->group_email);
-	xmlNewChild (profile_node, NULL, "plurals", profile->priv->plurals);
+	xmlTextNewChild (profile_node, NULL, "profile_name", profile->priv->name);
+	xmlTextNewChild (profile_node, NULL, "author_name", profile->priv->author_name);
+	xmlTextNewChild (profile_node, NULL, "autor_email", profile->priv->author_email);
+	xmlTextNewChild (profile_node, NULL, "language_name", profile->priv->language_name);
+	xmlTextNewChild (profile_node, NULL, "language_code", profile->priv->language_code);
+	xmlTextNewChild (profile_node, NULL, "charset", profile->priv->charset);
+	xmlTextNewChild (profile_node, NULL, "encoding", profile->priv->encoding);
+	xmlTextNewChild (profile_node, NULL, "group_email", profile->priv->group_email);
+	xmlTextNewChild (profile_node, NULL, "plurals", profile->priv->plurals);
 }
 
 /**



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