From: Youngjae Cho Date: Thu, 14 Mar 2024 09:12:52 +0000 (+0900) Subject: init_db: Change origin of value from text to attribute X-Git-Tag: accepted/tizen/unified/20240727.112800~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=114901968a5bb35d104feca8dc4baf5b167828e3;p=platform%2Fcore%2Fapi%2Fsystem-info.git init_db: Change origin of value from text to attribute A element of model-config.xml has changed to have attribute @value and it replaces the role of the text node. - As-is: false - To-be: This is because, it looks better when the has @type="enum". Such a should have a child element. And if the change had not made, the text value of would have followed the , which looks bad. Change-Id: I227d9271a6fbfb77308fb197b503edb87c2f332c Signed-off-by: Youngjae Cho --- diff --git a/src/init_db/system_info_db_init.c b/src/init_db/system_info_db_init.c index 1c27153..25ea4fa 100644 --- a/src/init_db/system_info_db_init.c +++ b/src/init_db/system_info_db_init.c @@ -355,7 +355,7 @@ static int system_info_get_values_config_xml(const char *db_path, const char *pa continue; } - value = (char *)xmlNodeListGetString(doc, cur_node->xmlChildrenNode, 1); + value = (char *)xmlGetProp(cur_node, (const xmlChar*)"value"); if (!value) { xmlFree(name); xmlFree(type);