xmlGenerator.bat path_of_CFG_fileThe script can be integrated in an external batch process launched from the command line. The command line parameter of the script is the relative path to the exported XML settings file. The files specified with relative paths in the exported XML settings will be made absolute relative to the folder where the script is run.
The following example shows such an XML configuration file:
<settings> <schemaSystemId>http://www.w3.org/2001/XMLSchema.xsd</schemaSystemId> <documentRoot>schema</documentRoot> <outputFolder>D:\projects\output</outputFolder> <filenamePrefix>instance</filenamePrefix> <filenameExtension>xml</filenameExtension> <noOfInstances>1</noOfInstances> <openFirstInstance>true</openFirstInstance> <defaultNamespace><NO_NAMESPACE></defaultNamespace> <element namespace="<ANY>" name="<ANY>"> <generateOptionalElements>false</generateOptionalElements> <generateOptionalAttributes>false</generateOptionalAttributes> <valuesForContentType>DEFAULT</valuesForContentType> <preferredNumberOfRepetitions>2</preferredNumberOfRepetitions> <maximumRecursivityLevel>1</maximumRecursivityLevel> <choicesAndSubstitutions strategy="RANDOM" generateOthersAsComments="false"/> <attribute namespace="<ANY>" name="<ANY>"> <attributeValue>attrValue1</attributeValue> <attributeValue>attrValue2</attributeValue> </attribute> </element> <element namespace="<NO_NAMESPACE>" name="<ANY>"> <generateOptionalElements>true</generateOptionalElements> <generateOptionalAttributes>true</generateOptionalAttributes> <valuesForContentType>DEFAULT</valuesForContentType> <preferredNumberOfRepetitions>2</preferredNumberOfRepetitions> <maximumRecursivityLevel>1</maximumRecursivityLevel> <choicesAndSubstitutions strategy="RANDOM" generateOthersAsComments="true"/> <elementValue>value1</elementValue> <elementValue>value2</elementValue> <attribute namespace="<ANY>" name="<ANY>"> <attributeValue>attrValue1</attributeValue> <attributeValue>attrValue2</attributeValue> </attribute> </element> </settings>