const xmlChar *attr_value = reinterpret_cast<const xmlChar *>(
it.second->get_contents().c_str());
xmlSetProp(child, attr_key, attr_value);
} else if ((!id.empty() && begins_with(it.first, "#" + id + "/"))) {
const xmlChar *attr_key = reinterpret_cast<const xmlChar *>(
const xmlChar *attr_value = reinterpret_cast<const xmlChar *>(
it.second->get_contents().c_str());
xmlSetProp(child, attr_key, attr_value);
} else if ((!id.empty() && begins_with(it.first, "#" + id + "/"))) {
const xmlChar *attr_key = reinterpret_cast<const xmlChar *>(