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

Function xmlSearchNsByHref

ThirdParty/libxml2/vtklibxml2/tree.c:6291–6298  ·  view source on GitHub ↗

* xmlSearchNsByHref: * @doc: the document * @node: the current node * @href: the namespace value * * Search a Ns aliasing a given URI. Recurse on the parents until it finds * the defined namespace or return NULL otherwise. * * Returns the namespace pointer or NULL if no namespace was found or * a memory allocation failed. Allocations can only fail if the "xml" * namespace is queried.

Source from the content-addressed store, hash-verified

6289 * namespace is queried.
6290 */
6291xmlNsPtr
6292xmlSearchNsByHref(xmlDocPtr doc ATTRIBUTE_UNUSED, xmlNodePtr node,
6293 const xmlChar * href) {
6294 xmlNsPtr cur;
6295
6296 xmlSearchNsByHrefSafe(node, href, &cur);
6297 return(cur);
6298}
6299
6300/**
6301 * xmlNewReconciledNs:

Callers 2

xmlDumpXMLCatalogNodeFunction · 0.85

Calls 1

xmlSearchNsByHrefSafeFunction · 0.85

Tested by

no test coverage detected