Command "CreateDoc"

Summary

Creates or copies a new (XML-)document. The command belongs to the group "Document".


Parameters

Parameter Name Description Type
EleRef The name of the reference to the document to be copied. elementReference
NewDocRef The name of the reference under which the new document will be accessible. saveDocumentReference

Valid parameter combinations



Description

Creates a new document and saves the referenced element and its subelements to the new document.

Examples


Example 1

The example below creates the new document "/output/mydoc.xml" and saves the referenced element "myElement".
<CreateDoc NewDocRef="/output/mydoc.xml" EleRef="$myElement">