+ xmlNode * const image_node = info->images[image - 1];
+ const tchar *text;
+ tchar timebuf[64];
+
+ tprintf(T("Index: %d\n"), image);
+
+ /* Always print the Name and Description, even if the corresponding XML
+ * elements are not present. */
+ text = xml_get_ttext_by_path(info, image_node, "NAME");
+ tprintf(T("Name: %"TS"\n"), text ? text : T(""));
+ text = xml_get_ttext_by_path(info, image_node, "DESCRIPTION");
+ tprintf(T("Description: %"TS"\n"), text ? text : T(""));
+
+ text = xml_get_ttext_by_path(info, image_node, "DISPLAYNAME");
+ if (text)
+ tprintf(T("Display Name: %"TS"\n"), text);
+
+ text = xml_get_ttext_by_path(info, image_node, "DISPLAYDESCRIPTION");
+ if (text)
+ tprintf(T("Display Description: %"TS"\n"), text);
+
+ tprintf(T("Directory Count: %"PRIu64"\n"),
+ xml_get_number_by_path(image_node, "DIRCOUNT"));
+
+ tprintf(T("File Count: %"PRIu64"\n"),
+ xml_get_number_by_path(image_node, "FILECOUNT"));
+
+ tprintf(T("Total Bytes: %"PRIu64"\n"),
+ xml_get_number_by_path(image_node, "TOTALBYTES"));
+
+ tprintf(T("Hard Link Bytes: %"PRIu64"\n"),
+ xml_get_number_by_path(image_node, "HARDLINKBYTES"));
+
+ wim_timestamp_to_str(xml_get_timestamp_by_path(image_node,
+ "CREATIONTIME"),
+ timebuf, ARRAY_LEN(timebuf));
+ tprintf(T("Creation Time: %"TS"\n"), timebuf);
+
+ wim_timestamp_to_str(xml_get_timestamp_by_path(image_node,
+ "LASTMODIFICATIONTIME"),
+ timebuf, ARRAY_LEN(timebuf));
+ tprintf(T("Last Modification Time: %"TS"\n"), timebuf);
+
+ print_windows_info(info, image_node);
+
+ text = xml_get_ttext_by_path(info, image_node, "FLAGS");
+ if (text)
+ tprintf(T("Flags: %"TS"\n"), text);
+
+ tprintf(T("WIMBoot compatible: %"TS"\n"),
+ xml_get_number_by_path(image_node, "WIMBOOT") ?
+ T("yes") : T("no"));
+
+ tputchar('\n');