[xml] Building DOM: Adding the DOCTYPE



When using the libxml DOM interface to build an XML document, how can I
add the DOCTYPE declaration at the top? For instance
<!DOCTYPE example_xml_doc SYSTEM "example_xml_doc.dtd">

I saw xmlAddNotationDecl(), but that takes an xmlDtdPtr instead of just
the name and location of the DTD.

-- 
Murray Cumming
murray usa net
www.murrayc.com




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]