num_images = 0;
for_node_child(wim_node, child) {
if (node_is_element(child) && node_name_is(child, "IMAGE")) {
num_images = 0;
for_node_child(wim_node, child) {
if (node_is_element(child) && node_name_is(child, "IMAGE")) {
ERROR("WIM images are not indexed [1...%d] "
"in XML data as expected",
num_images);
ERROR("WIM images are not indexed [1...%d] "
"in XML data as expected",
num_images);
ret = prepare_wim_xml_data(wim, image, total_bytes,
&xml_data, &xml_len);
ret = prepare_wim_xml_data(wim, image, total_bytes,
&xml_data, &xml_len);