Create an XUI dialog on the fly

Credits to Tung Fu and Paul Tyson Last Updated: 2006-07-29

=One Way=

Application.openDocument("", 0, 0, "-//Arbortext//DTD XUI XML 1.0//EN"); ... Application.createDialogFromDocument;

The "enabledocking" attribute on the "window" element needs to be set before the dialog is created.

=Another way=

DOMImplementation impl = Application.getDomImplementation; DocumentType doctype = impl.createDocumentType(...); Document doc = impl.createDocument(..., doctype);

It saves some code to start with a skeleton xui file, unless you truly need to build the entire dialog dynamically.