The commit
114901968a5bb35d104feca8dc4baf5b167828e3 has changed feature
matching style. However, there are features that haven't been changed to
the latest style. Therefore it also supports matching the previous style
feature.
Change-Id: I6464f980ec6c0f2ac1900ac319ece25636b0e06d
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
continue;
}
- value = (char *)xmlGetProp(cur_node, (const xmlChar*)"value");
+ /**
+ * Match the latest style first
+ * : <key name="tizen.org/feature/foo" type="bool" value="false"/>
+ * and if it fails to match, do fallback. Match the old style
+ * : <key name="tizen.org/feature/foo" type="bool">false</key>
+ */
+ value = (char *)xmlGetProp(cur_node, (const xmlChar*)"value") ? :
+ (char *)xmlNodeListGetString(doc, cur_node->xmlChildrenNode, 1);
if (!value) {
xmlFree(name);
xmlFree(type);