benchmark.c   benchmark.c 
skipping to change at line 227 skipping to change at line 227
const char *style_href = xccdf_benchmark_get_style_href(benchmark); const char *style_href = xccdf_benchmark_get_style_href(benchmark);
if (style_href) if (style_href)
xmlNewProp(root_node, BAD_CAST "style-href", BAD_CAST style_ href); xmlNewProp(root_node, BAD_CAST "style-href", BAD_CAST style_ href);
/* In spec but not in OpenSCAP /* In spec but not in OpenSCAP
const char *lang = xccdf_benchmark_get_lang(benchmark); const char *lang = xccdf_benchmark_get_lang(benchmark);
if (lang) if (lang)
xmlNewProp(root_node, BAD_CAST "xml:lang", BAD_CAST lang);*/ xmlNewProp(root_node, BAD_CAST "xml:lang", BAD_CAST lang);*/
/* Handle children */ /* Handle children */
struct xccdf_notice_iterator *notices = xccdf_benchmark_get_notices(
benchmark);
while (xccdf_notice_iterator_has_more(notices)) {
struct xccdf_notice *notice = xccdf_notice_iterator_next(not
ices);
xmlNode *notice_node = oscap_text_to_dom(xccdf_notice_get_te
xt(notice), root_node, "notice");
const char *id = xccdf_notice_get_id(notice);
if (id)
xmlNewProp(notice_node, BAD_CAST "id", BAD_CAST id);
}
xccdf_notice_iterator_free(notices);
xccdf_texts_to_dom(xccdf_benchmark_get_front_matter(benchmark), root
_node, "front-matter");
xccdf_texts_to_dom(xccdf_benchmark_get_rear_matter(benchmark), root_
node, "rear-matter");
struct oscap_string_iterator *platforms = xccdf_benchmark_get_platfo rms(benchmark); struct oscap_string_iterator *platforms = xccdf_benchmark_get_platfo rms(benchmark);
while (oscap_string_iterator_has_more(platforms)) { while (oscap_string_iterator_has_more(platforms)) {
xmlNode *platform_node = xmlNewTextChild(root_node, ns_xccdf , BAD_CAST "platform", NULL); xmlNode *platform_node = xmlNewTextChild(root_node, ns_xccdf , BAD_CAST "platform", NULL);
const char *idref = oscap_string_iterator_next(platforms); const char *idref = oscap_string_iterator_next(platforms);
if (idref) if (idref)
xmlNewProp(platform_node, BAD_CAST "idref", BAD_CAST idref); xmlNewProp(platform_node, BAD_CAST "idref", BAD_CAST idref);
} }
oscap_string_iterator_free(platforms); oscap_string_iterator_free(platforms);
 End of changes. 1 change blocks. 
19 lines changed or deleted 0 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/