diff options
| author | Damien Laniel <dlaniel@entrouvert.com> | 2007-05-09 15:29:56 +0000 |
|---|---|---|
| committer | Damien Laniel <dlaniel@entrouvert.com> | 2007-05-09 15:29:56 +0000 |
| commit | d036d35a78de5b01cae34900705e9f7874cba56c (patch) | |
| tree | abc07a62e7a65f1e8a14759f27efb54ccedd192d | |
| parent | 9e62b87be49c66342007dc7c4a6bb63cf1e5abe0 (diff) | |
| download | lasso-d036d35a78de5b01cae34900705e9f7874cba56c.tar.gz lasso-d036d35a78de5b01cae34900705e9f7874cba56c.tar.xz lasso-d036d35a78de5b01cae34900705e9f7874cba56c.zip | |
don't use misc_text_node
| -rw-r--r-- | lasso/id-ff/identity.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/lasso/id-ff/identity.c b/lasso/id-ff/identity.c index 18b6aea1..c816455b 100644 --- a/lasso/id-ff/identity.c +++ b/lasso/id-ff/identity.c @@ -28,7 +28,6 @@ #ifdef LASSO_WSF_ENABLED #include <lasso/id-wsf/identity.h> #include <lasso/id-wsf-2.0/identity.h> -#include <lasso/xml/misc_text_node.h> #endif #include <lasso/id-ff/identityprivate.h> @@ -262,8 +261,7 @@ add_childnode_from_list(LassoNode *value, xmlNode *xmlnode) static void add_text_childnode_from_list(gchar *value, xmlNode *xmlnode) { - xmlAddChild(xmlnode, lasso_node_get_xmlNode( - lasso_misc_text_node_new_with_string(value), TRUE)); + xmlNewTextChild(xmlnode, NULL, (xmlChar*)"SvcMDID", (xmlChar*)value); } #endif @@ -338,16 +336,12 @@ init_from_xml(LassoNode *node, xmlNode *xmlnode) if (strcmp((char*)t->name, "SvcMDIDs") == 0) { t2 = t->children; while (t2) { - LassoMiscTextNode *text_node; if (t2->type != XML_ELEMENT_NODE) { t2 = t2->next; continue; } - text_node = LASSO_MISC_TEXT_NODE(lasso_misc_text_node_new()); - LASSO_NODE_GET_CLASS(text_node)->init_from_xml( - LASSO_NODE(text_node), t2); identity->private_data->svcMDID = g_list_append( - identity->private_data->svcMDID, text_node->content); + identity->private_data->svcMDID, xmlNodeGetContent(t2)); t2 = t2->next; } } |
