Parameter syntax:
[file_name
|URL
]?
Creates a new document using an existing document as a template. After loading a copy of the existing document, all the content of the copy is discarded to just keep a valid skeleton of the root element.
Without a parameter, this command displays the file chooser dialog box to let the user specify an existing document.
Parameters:
file_name
or URL
Specifies which document to use as a template.
Returns newly created com.xmlmind.xmledit.doc.Document
(for use by higher-level commands) or Command.EXECUTION_FAILED
if specified template cannot be opened or if user has canceled the command.