Changes

Hosts.xml

900 bytes added, 06:28, 17 May 2011
Add XSD schema
If you have more hosts, or want to group them, it would be unwise to edit dozens of host entries just to attach them all to one or two profiles.
That's why you can use [http://msdn2.microsoft.com/en-us/library/ae5bf541(vs.71).aspx Regular Expression Syntax].
 
==XSD schema==
<pre>
<?xml version="1.0" encoding="utf-8"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:complexType name="profileType">
<xs:attribute name="id" type="xs:string" use="required" />
</xs:complexType>
<xs:complexType name="hostType">
<xs:sequence minOccurs="0">
<xs:choice maxOccurs="unbounded">
<xs:element maxOccurs="unbounded" name="profile" type="profileType"></xs:element>
</xs:choice>
</xs:sequence>
<xs:attribute name="name" type="xs:string" use="required" />
<xs:attribute name="profile-id" type="xs:string" use="required" />
</xs:complexType>
 
<xs:element name="wpkg">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" maxOccurs="unbounded" name="host" type="hostType"></xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
</pre>
==Quick examples==
10
edits