Skip to main content

new_dtd

Function new_dtd 

Source
pub unsafe fn new_dtd(
    doc: *mut _xmlDoc,
    name: *const xmlChar,
    ExternalID: *const xmlChar,
    SystemID: *const xmlChar,
) -> *mut _xmlDtd
Expand description

Create a new DTD node.

§UPSTREAM-PARITY

xmlDtdPtr xmlNewDtd(xmlDocPtr doc, const xmlChar *name,
                    const xmlChar *ExternalID, const xmlChar *SystemID);

Creates a new DTD and attaches it to the document.

§SAFETY

  • doc must be a valid pointer to an _xmlDoc.
  • name must be a valid null-terminated string or NULL.
  • ExternalID, SystemID may be NULL.