Hi all,
Please I am working with IBM message broker, and I want to know how to create (in java/esql) DOCTYPE element in a message as the following:
<!DOCTYPE COMMAND PUBLIC "any//DTD any//EN" "xml/command.dtd">
<COMMAND>
......
<COMMAND>
I tried:
MbElement root = outMessage.getRootElement().getLastChild();
MbElement xmlDocType = root.createElementAsFirstChild(MbXMLNSC.DOCUMENT_TYPE);
xmlDocType.setName("COMMAND PUBLIC");
xmlDocType.createElementAsLastChild(MbXMLNSC.Attribute, null, "any//DTD any//EN");
but no way :( it produces:
<!DOCTYPE COMMAND PUBLIC []>
<COMMAND>
......
<COMMAND>
Thanks in advance,