{
if (node != NULL)
node = node->children;
+
for (const xmlNode* cur_node = node; cur_node; cur_node = cur_node->next)
{
if (strcmp(name, (const char*) cur_node->name) == 0)
if (node != NULL)
node = node->children;
+
for (const xmlNode* cur_node = node; cur_node; cur_node = cur_node->next)
{
if (cur_node->type == XML_ELEMENT_NODE &&
return ret;
}
+
bool
getValue(const xmlNode* node, string& value)
{
if (tmp == nullptr)
return false;
- value = (const char *) tmp;
+ value = (const char*) tmp;
xmlFree(tmp);
return true;
}
+
bool
getChildValue(const xmlNode* node, const char* name, string& value)
{
if (node != NULL)
node = node->children;
+
for (const xmlNode* cur_node = node; cur_node; cur_node = cur_node->next)
{
if (cur_node->type == XML_ELEMENT_NODE &&
return true;
}
+
bool
getAttributeValue(const xmlNode* node, const char* name, string& value)
{
- xmlChar* tmp = xmlGetNoNsProp(node, (const xmlChar *) name);
+ xmlChar* tmp = xmlGetNoNsProp(node, (const xmlChar*) name);
if (tmp == nullptr)
return false;
- value = (const char *) tmp;
+ value = (const char*) tmp;
xmlFree(tmp);
return true;
}
+
bool
getAttributeValue(const xmlNode* node, const char* name, bool& value)
{
return true;
}
+
void
setChildValue(xmlNode* node, const char* name, const char* value)
{