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

Function acl_xml2_create_node

lib_acl/src/xml/acl_xml2_util.c:372–388  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

370}
371
372ACL_XML2_NODE *acl_xml2_create_node(ACL_XML2 *xml, const char* tag,
373 const char* text)
374{
375 ACL_XML2_NODE *node = acl_xml2_node_alloc(xml);
376
377 acl_assert(tag && *tag);
378
379 node->ltag = END(xml->vbuf);
380 APPEND(xml->vbuf, tag);
381 node->ltag_size = (ssize_t) (END(xml->vbuf) - node->ltag);
382 ADD(xml->vbuf, '\0');
383
384 if (text && *text)
385 acl_xml2_node_set_text(node, text);
386
387 return node;
388}
389
390ACL_XML2_NODE *acl_xml2_create_node_with_text_stream(ACL_XML2 *xml,
391 const char *tag, ACL_VSTREAM *fp, size_t off, size_t len)

Callers 2

build_xmlFunction · 0.85
xml2.cppFile · 0.85

Calls 2

acl_xml2_node_allocFunction · 0.85
acl_xml2_node_set_textFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…