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

Function xmlGetRefs

ThirdParty/libxml2/vtklibxml2/valid.c:2915–2932  ·  view source on GitHub ↗

* xmlGetRefs: * @doc: pointer to the document * @ID: the ID value * * DEPRECATED, do not use. This function will be removed from the public API. * * Find the set of references for the supplied ID. * * Returns NULL if not found, otherwise node set for the ID. */

Source from the content-addressed store, hash-verified

2913 * Returns NULL if not found, otherwise node set for the ID.
2914 */
2915xmlListPtr
2916xmlGetRefs(xmlDocPtr doc, const xmlChar *ID) {
2917 xmlRefTablePtr table;
2918
2919 if (doc == NULL) {
2920 return(NULL);
2921 }
2922
2923 if (ID == NULL) {
2924 return(NULL);
2925 }
2926
2927 table = (xmlRefTablePtr) doc->refs;
2928 if (table == NULL)
2929 return(NULL);
2930
2931 return (xmlHashLookup(table, ID));
2932}
2933
2934/************************************************************************
2935 * *

Callers

nothing calls this directly

Calls 1

xmlHashLookupFunction · 0.85

Tested by

no test coverage detected