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

Function xmlIsXHTML

ThirdParty/libxml2/vtklibxml2/tree.c:9942–9957  ·  view source on GitHub ↗

* xmlIsXHTML: * @systemID: the system identifier * @publicID: the public identifier * * Try to find if the document correspond to an XHTML DTD * * Returns 1 if true, 0 if not and -1 in case of error */

Source from the content-addressed store, hash-verified

9940 * Returns 1 if true, 0 if not and -1 in case of error
9941 */
9942int
9943xmlIsXHTML(const xmlChar *systemID, const xmlChar *publicID) {
9944 if ((systemID == NULL) && (publicID == NULL))
9945 return(-1);
9946 if (publicID != NULL) {
9947 if (xmlStrEqual(publicID, XHTML_STRICT_PUBLIC_ID)) return(1);
9948 if (xmlStrEqual(publicID, XHTML_FRAME_PUBLIC_ID)) return(1);
9949 if (xmlStrEqual(publicID, XHTML_TRANS_PUBLIC_ID)) return(1);
9950 }
9951 if (systemID != NULL) {
9952 if (xmlStrEqual(systemID, XHTML_STRICT_SYSTEM_ID)) return(1);
9953 if (xmlStrEqual(systemID, XHTML_FRAME_SYSTEM_ID)) return(1);
9954 if (xmlStrEqual(systemID, XHTML_TRANS_SYSTEM_ID)) return(1);
9955 }
9956 return(0);
9957}
9958
9959/************************************************************************
9960 * *

Callers 2

xmlDocContentDumpOutputFunction · 0.85
xmlNodeDumpOutputFunction · 0.85

Calls 1

xmlStrEqualFunction · 0.85

Tested by

no test coverage detected