--- embedtools/src/Attic/xmler.c 2010/09/29 15:32:33 1.1.2.8 +++ embedtools/src/Attic/xmler.c 2010/09/29 16:51:14 1.1.2.10 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ - * $Id: xmler.c,v 1.1.2.8 2010/09/29 15:32:33 misho Exp $ + * $Id: xmler.c,v 1.1.2.10 2010/09/29 16:51:14 misho Exp $ * *************************************************************************/ #include "global.h" @@ -71,11 +71,12 @@ ShowItem(axlNode *node, int lvl) for (i = 0; i < axl_node_get_child_num(node); i++) { child = axl_node_get_child_nth(node, i); + if (!lvl) - printf("%s %s %s", axl_node_get_name(node), axl_node_get_name(child), + printf("%s %s \"%s\"", axl_node_get_name(node), axl_node_get_name(child), axl_node_get_content(child, &ctxlen)); else - printf(" %s %s", axl_node_get_name(child), axl_node_get_content(child, &ctxlen)); + printf(" %s \"%s\"", axl_node_get_name(child), axl_node_get_content(child, &ctxlen)); ShowItem(child, 1); @@ -383,13 +384,13 @@ main(int argc, char **argv) if (!xr.xml_namespace.vallen) { if (ret == 32) { if (!(node = axl_doc_get(doc, xr.xml_node.path.value))) { - printf("DEL:: path %s - not found!\n", xr.xml_node.path.value); + printf("LST:: path %s - not found!\n", xr.xml_node.path.value); ret = 1; goto end; } } else { if (!(node = axl_doc_find_called(doc, xr.xml_node.container.value))) { - printf("DEL:: node %s - not found!\n", xr.xml_node.container.value); + printf("LST:: node %s - not found!\n", xr.xml_node.container.value); ret = 1; goto end; } @@ -400,14 +401,14 @@ main(int argc, char **argv) strlcat(str, xr.xml_node.container.value, sizeof str); if (ret == 32) { if (!(node = axl_doc_get(doc, str))) { - printf("DEL:: path %s:%s - not found!\n", xr.xml_namespace.value, + printf("LST:: path %s:%s - not found!\n", xr.xml_namespace.value, xr.xml_node.path.value); ret = 1; goto end; } } else { if (!(node = axl_doc_find_called(doc, str))) { - printf("DEL:: node %s:%s - not found!\n", xr.xml_namespace.value, + printf("LST:: node %s:%s - not found!\n", xr.xml_namespace.value, xr.xml_node.container.value); ret = 1; goto end;