MCPcopy Create free account
hub / github.com/acl-dev/acl / xml_node_print

Function xml_node_print

lib_acl_cpp/samples/xml/xml4/main.cpp:21–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19}
20
21static void xml_node_print(const acl::xml_node& node, int depth)
22{
23 for (int i = 0; i < depth; i++)
24 printf("\t");
25
26 printf("tag: %s\r\n", node.tag_name());
27
28 const char* txt = node.text();
29 for (int i = 0; i < depth; i++)
30 printf("\t");
31 printf("text: {%s}\r\n", txt ? txt : "");
32
33 node_attr_print(node, depth + 1);
34}
35
36static void xml_node_walk(acl::xml_node& node, int depth)
37{

Callers 1

xml_node_walkFunction · 0.70

Calls 3

node_attr_printFunction · 0.70
tag_nameMethod · 0.45
textMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…