How to get the doctype declaration using DOM on Xerces 2.8 -
i trying add doctype declaration output xml file using xerces 2.8
i using domdocument* doc1 = implementation->createdocument(); create document
and want add doctype doc doc1.
i obtain doctype doc follow:
domdocumenttype* document_type = doc->getdoctype();
however, can not pass document_type function createdocument().
does has example of how this?
thank you,
gilmer
you have set "http://xml.org/sax/properties/lexical-handler" property of xerces instance object of type "lexicalhandler". informed events on "startdtd" callback. @ least true java. should identical c.