oval_varModel.c   oval_varModel.c 
skipping to change at line 338 skipping to change at line 338
{ {
xmlNodePtr root_node; xmlNodePtr root_node;
if (parent) { if (parent) {
root_node = xmlNewTextChild(parent, NULL, BAD_CAST "oval_var iables", NULL); root_node = xmlNewTextChild(parent, NULL, BAD_CAST "oval_var iables", NULL);
} else { } else {
root_node = xmlNewNode(NULL, BAD_CAST "oval_variables"); root_node = xmlNewNode(NULL, BAD_CAST "oval_variables");
xmlDocSetRootElement(doc, root_node); xmlDocSetRootElement(doc, root_node);
} }
xmlNewProp(root_node, BAD_CAST "xsi:schemaLocation", BAD_CAST OVAL_V
AR_SCHEMA_LOCATION);
xmlNs *ns_common = xmlNewNs(root_node, OVAL_COMMON_NAMESPACE, BAD_CA ST "oval"); xmlNs *ns_common = xmlNewNs(root_node, OVAL_COMMON_NAMESPACE, BAD_CA ST "oval");
xmlNs *ns_xsi = xmlNewNs(root_node, OVAL_XMLNS_XSI, BAD_CAST "xsi");
xmlNs *ns_variables = xmlNewNs(root_node, OVAL_VARIABLES_NAMESPACE, NULL); xmlNs *ns_variables = xmlNewNs(root_node, OVAL_VARIABLES_NAMESPACE, NULL);
xmlSetNs(root_node, ns_common); xmlSetNs(root_node, ns_common);
xmlSetNs(root_node, ns_xsi);
xmlSetNs(root_node, ns_variables); xmlSetNs(root_node, ns_variables);
oval_generator_to_dom(variable_model->generator, doc, root_node); oval_generator_to_dom(variable_model->generator, doc, root_node);
xmlNode *variables = xmlNewTextChild(root_node, ns_variables, BAD_CA ST "variables", NULL); xmlNode *variables = xmlNewTextChild(root_node, ns_variables, BAD_CA ST "variables", NULL);
struct oval_string_iterator *varids = oval_variable_model_get_variab le_ids(variable_model); struct oval_string_iterator *varids = oval_variable_model_get_variab le_ids(variable_model);
while (oval_string_iterator_has_more(varids)) { while (oval_string_iterator_has_more(varids)) {
char *varid = oval_string_iterator_next(varids); char *varid = oval_string_iterator_next(varids);
oval_datatype_t datatype = oval_variable_model_get_datatype( variable_model, varid); oval_datatype_t datatype = oval_variable_model_get_datatype( variable_model, varid);
 End of changes. 3 change blocks. 
0 lines changed or deleted 6 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/