I'm using XmlBeans to process my inbound documents. The documents are based upon a dtd. I've created a schema that represents the dtd so I could generate my XmlBeans. All processing works successfully but the problem I am having pertains to the DOCTYPE. The request documents we receive from our Trading Partner have the DOCTYPE element specified. This is needed for proper processing. It looks as follows:
<!DOCTYPE Pip3A4PurchaseOrderConfirmation SYSTEM "3A4_MS_V02_02_PurchaseOrderRequest.dtd">
My challenge now is how can I place the following into my confirmation documents that I build and send back to my Trading Partner?
<!DOCTYPE Pip3A4PurchaseOrderConfirmation SYSTEM "3A4_MS_V02_02_PurchaseOrderConfirmation.dtd">

