Hi

I am trying to add a DOCTYPE declaration from an XML document  to a new XML 
document using Xerces 2.8

I am using DOMDocument* doc1 = implementation->createDocument(); to create the 
second document (the one that I want to add the doctype declaration)

and I want to add the doctype from doc to doc1.

I could obtain the doctype from doc as follow:

DOMDocumentType* document_type = doc->getDoctype();

However, I can not pass document_type to the function createDocument().

Does anyone has a specific example of how to do this?

Thank you,

Gilmer

IMPORTANT WARNING:  This email (and any attachments) is only intended for the 
use of the person or entity to which it is addressed, and may contain 
information that is privileged and confidential.  You, the recipient, are 
obligated to maintain it in a safe, secure and confidential manner.  
Unauthorized redisclosure or failure to maintain confidentiality may subject 
you to federal and state penalties. If you are not the intended recipient, 
please immediately notify us by return email, and delete this message from your 
computer.

Reply via email to