* xmlGetEntityFromDtd: * @dtd: A pointer to the DTD to search * @name: The entity name * * Do an entity lookup in the DTD entity hash table and * return the corresponding entity, if found. * * Returns A pointer to the entity structure or NULL if not found. */
| 111 | * Returns A pointer to the entity structure or NULL if not found. |
| 112 | */ |
| 113 | static xmlEntityPtr |
| 114 | xmlGetEntityFromDtd(const xmlDtd *dtd, const xmlChar *name) { |
| 115 | xmlEntitiesTablePtr table; |
| 116 | |
| 117 | if((dtd != NULL) && (dtd->entities != NULL)) { |
| 118 | table = (xmlEntitiesTablePtr) dtd->entities; |
| 119 | return((xmlEntityPtr) xmlHashLookup(table, name)); |
| 120 | /* return(xmlGetEntityFromTable(table, name)); */ |
| 121 | } |
| 122 | return(NULL); |
| 123 | } |
| 124 | /** |
| 125 | * xmlGetParameterEntityFromDtd: |
| 126 | * @dtd: A pointer to the DTD to search |
no test coverage detected