* 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. */
| 2913 | * Returns NULL if not found, otherwise node set for the ID. |
| 2914 | */ |
| 2915 | xmlListPtr |
| 2916 | xmlGetRefs(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 | * * |
nothing calls this directly
no test coverage detected