MCPcopy Create free account
hub / github.com/Kitware/VTK / xmlSAX2EndElementNs

Function xmlSAX2EndElementNs

ThirdParty/libxml2/vtklibxml2/SAX2.c:2331–2353  ·  view source on GitHub ↗

* xmlSAX2EndElementNs: * @ctx: the user data (XML parser context) * @localname: the local name of the element * @prefix: the element namespace prefix if available * @URI: the element namespace name if available * * SAX2 callback when an element end has been detected by the parser. * It provides the namespace information for the element. */

Source from the content-addressed store, hash-verified

2329 * It provides the namespace information for the element.
2330 */
2331void
2332xmlSAX2EndElementNs(void *ctx,
2333 const xmlChar * localname ATTRIBUTE_UNUSED,
2334 const xmlChar * prefix ATTRIBUTE_UNUSED,
2335 const xmlChar * URI ATTRIBUTE_UNUSED)
2336{
2337 xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx;
2338
2339 if (ctx == NULL) return;
2340 ctxt->nodemem = -1;
2341
2342#ifdef LIBXML_VALID_ENABLED
2343 if (ctxt->validate && ctxt->wellFormed &&
2344 ctxt->myDoc && ctxt->myDoc->intSubset)
2345 ctxt->valid &= xmlValidateOneElement(&ctxt->vctxt, ctxt->myDoc,
2346 ctxt->node);
2347#endif /* LIBXML_VALID_ENABLED */
2348
2349 /*
2350 * end of parsing of this node.
2351 */
2352 nodePop(ctxt);
2353}
2354
2355/**
2356 * xmlSAX2Reference:

Callers 1

endElementNsBndFunction · 0.85

Calls 2

xmlValidateOneElementFunction · 0.85
nodePopFunction · 0.85

Tested by 1

endElementNsBndFunction · 0.68