* xmlGetIntSubset: * @doc: the document pointer * * Get the internal subset of a document. * * Returns a pointer to the DTD object or NULL if not found. */
| 900 | * Returns a pointer to the DTD object or NULL if not found. |
| 901 | */ |
| 902 | xmlDtdPtr |
| 903 | xmlGetIntSubset(const xmlDoc *doc) { |
| 904 | xmlNodePtr cur; |
| 905 | |
| 906 | if (doc == NULL) |
| 907 | return(NULL); |
| 908 | cur = doc->children; |
| 909 | while (cur != NULL) { |
| 910 | if (cur->type == XML_DTD_NODE) |
| 911 | return((xmlDtdPtr) cur); |
| 912 | cur = cur->next; |
| 913 | } |
| 914 | return((xmlDtdPtr) doc->intSubset); |
| 915 | } |
| 916 | |
| 917 | /** |
| 918 | * xmlCreateIntSubset: |
no outgoing calls
no test coverage detected