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

Function walk_xml_node

lib_acl/samples/xml/xml2/main.c:195–221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

193}
194
195static void walk_xml_node(ACL_XML_NODE *node, int n)
196{
197 ACL_ITER iter;
198
199 /* ���������ӽ�� */
200
201 acl_foreach(iter, node) {
202 int i;
203 ACL_XML_NODE *child = (ACL_XML_NODE*) iter.data;
204
205 for (i = 0; i < n; i++)
206 printf("\t");
207
208 printf("tag->%s, size: %ld\n", STR(child->ltag),
209 (long) LEN(child->ltag));
210
211 xml_node_attrs(child, n + 1);
212
213 for (i = 0; i < n + 1; i++)
214 printf("\t");
215
216 printf("text->%s, size: %ld\n", STR(child->text),
217 (long) LEN(child->text));
218
219 walk_xml_node(child, n + 1);
220 }
221}
222
223static void list_xml_tags(ACL_XML *xml)
224{

Callers 3

parse_xmlFunction · 0.70
test1Function · 0.70

Calls 2

xml_node_attrsFunction · 0.70
acl_foreachFunction · 0.50

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…