XML Schema

Parent Previous Next

The following XSD schema may be used to validate XML files intended for use with the Environment Variables Wizard GUI.  The schema may also be found in the file SetEnvUIConfig.xsd in <BTDFInstall>\Framework\DeployTools.


<?xml version="1.0" encoding="utf-8"?>

<!-- V1.0a -->

<xs:schema elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">

 <xs:element name="SetEnvUIConfig" nillable="true" type="SetEnvUIConfig" />

 <xs:complexType name="SetEnvUIConfig">

   <xs:sequence>

     <xs:element minOccurs="1" maxOccurs="1" name="DialogCaption" type="xs:string" />

     <xs:element minOccurs="1" maxOccurs="unbounded" name="SetEnvUIConfigItem" type="SetEnvUIConfigItem" />

   </xs:sequence>

 </xs:complexType>

 <xs:complexType name="SetEnvUIConfigItem">

   <xs:sequence>

     <xs:element minOccurs="1" maxOccurs="1" name="PromptText" type="xs:string" />

     <xs:element minOccurs="0" maxOccurs="1" name="Caption" type="xs:string" />

     <xs:element minOccurs="0" maxOccurs="1" name="PromptValue" type="xs:string" />

     <xs:element minOccurs="0" maxOccurs="1" default="true" name="PersistValue" type="xs:boolean" />

     <xs:element minOccurs="1" maxOccurs="1" name="ValueType" type="SetEnvUIValueType" />

     <xs:element minOccurs="1" maxOccurs="1" name="EnvironmentVarName" type="xs:string" />

   </xs:sequence>

 </xs:complexType>

 <xs:simpleType name="SetEnvUIValueType">

   <xs:restriction base="xs:string">

     <xs:enumeration value="Text" />

     <xs:enumeration value="Password" />

     <xs:enumeration value="FileSelect" />

     <xs:enumeration value="Checkbox" />

   </xs:restriction>

 </xs:simpleType>

</xs:schema>


This is a common example of a default server deployment definition file (InstallWizard.xml).  This instance defines two wizard steps (two SetEnvUIConfigItem elements), each of which sets the value of a single environment variable (named in EnvironmentVarName).  The wizard caption/title is defined in DialogCaption.


<?xml version="1.0" encoding="utf-8" ?>

<SetEnvUIConfig xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

  <DialogCaption>Deployment Framework for BizTalk Sample</DialogCaption>

 <SetEnvUIConfigItem>

   <PromptText>Select the XML file that contains configuration information:</PromptText>

   <PromptValue></PromptValue>

   <ValueType>FileSelect</ValueType>

   <EnvironmentVarName>ENV_SETTINGS</EnvironmentVarName>

 </SetEnvUIConfigItem>

 <SetEnvUIConfigItem>

     <PromptText>Is this the LAST server in the BizTalk Group you are deploying to?</PromptText>

     <Caption>This is the LAST server in the BizTalk Group</Caption>

     <PromptValue>true</PromptValue>

     <ValueType>Checkbox</ValueType>

     <EnvironmentVarName>BT_DEPLOY_MGMT_DB</EnvironmentVarName>

  </SetEnvUIConfigItem>

</SetEnvUIConfig>


Created with the Personal Edition of HelpNDoc: Write EPub books for the iPad