The
xml file is
<Specification>
<Customization-Spec>
<Auto-Logon>1</Auto-Logon>
<Virtual-Machine-Name>TestVMClone</Virtual-Machine-Name>
<Timezone>140</Timezone>
<Domain>WORKGROUPTEST</Domain>
<Domain-User-Name>administrator</Domain-User-Name>
<Domain-User-Password>password</Domain-User-Password>
<Full-Name>admin</Full-Name>
<Orgnization-Name>lllllllllllllllllllllllllllllll</Orgnization-Name>
</Customization-Spec>
<Virtual-Machine-Spec>
<Guest-Id>winXPProGuest</Guest-Id>
<Memory>548</Memory>
<Disksize>4194304</Disksize>
<Number-of-CPUS>1</Number-of-CPUS>
</Virtual-Machine-Spec>
</Specification>
And the
schema file is
<!-- definition of simple elements -->
<xs:element name="Auto-Logon">
<xs:simpleType>
<xs:restriction base="xs:integer">
<xs:enumeration value="0"/>
<xs:enumeration value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Virtual-Machine-Name" type="xs:string"/>
<xs:element name="Timezone" type="xs:integer"/>
<xs:element name="Domain" type="xs:string"/>
<xs:element name="Domain-User-Name" type="xs:string"/>
<xs:element name="Domain-User-Password" type="xs:string"/>
<xs:element name="Full-Name" type="xs:string"/>
<xs:element name="Orgnization-Name" type="xs:string"/>
<xs:element name="Guest-Id" type="xs:string"/>
<xs:element name="Disksize" type="xs:integer"/>
<xs:element name="Memory" type="xs:integer"/>
<xs:element name="Number-of-CPUS" type="xs:integer"/>
<!-- definition of complex elements -->
<xs:element name="Customization-Spec">
<xs:complexType>
<xs:sequence>
<xs:element ref="Auto-Logon"/>
<xs:element ref="Virtual-Machine-Name"/>
<xs:element ref="Timezone"/>
<xs:element ref="Domain"/>
<xs:element ref="Domain-User-Name"/>
<xs:element ref="Domain-User-Password"/>
<xs:element ref="Full-Name"/>
<xs:element ref="Orgnization-Name"/>
</xs:sequence>
</xs:complexType>
</xs:element>