XmlDocumentProperties props = confirmDoc.documentProperties();
props.setVersion(orderRequest.documentProperties().getVersion());
props.setEncoding(orderRequest.documentProperties().getEncoding());
props.setDoctypeSystemId(DOCTYPE_SYSTEM_ID);
props.setDoctypeName(DOCTYPE_NAME);
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, March 02, 2007 10:18 AM
To: user@xmlbeans.apache.org
Subject: How to add DOCTYPE to my XmlObject
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">