XML-схема для элемента WBSMasks
Ниже показан раздел схемы обмена xml-данными Microsoft Office Project 2007 (mspdi_pj12.xsd), который определяет элемент WBSMasks.
Полная схема обмена данными Project XML включена в пакет SDK для Project 2007. Ссылку на скачивание пакета SDK для Project 2007 см. в разделе Добро пожаловать в пакет SDK для Microsoft Office Project 2007.
Схема WBSMasks
<?xml version="1.0" encoding="utf-8"?>
. . .
<!-- @WBSMask schema -->
<xsd:element name="WBSMasks" minOccurs="0">
<xsd:annotation>
<xsd:documentation>The table of entries that define the outline code mask.</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
<xsd:element name="VerifyUniqueCodes" type="xsd:boolean" default="false" minOccurs="0">
<xsd:annotation>
<xsd:documentation>Whether work breakdown structure (WBS) codes are unique for new tasks.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="GenerateCodes" type="xsd:boolean" default="false" minOccurs="0">
<xsd:annotation>
<xsd:documentation>Whether WBS codes are generated for new tasks.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="Prefix" minOccurs="0">
<xsd:annotation>
<xsd:documentation>The prefix for all WBS codes.</xsd:documentation>
</xsd:annotation>
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="50" />
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="WBSMask" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>The WBS mask that is applied to all tasks in the project.</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Level" type="xsd:integer">
<xsd:annotation>
<xsd:documentation>The level of the mask.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="Type">
<xsd:annotation>
<xsd:documentation>The type of the node value. The values are: 0=Numbers, 1=Uppercase Letters, 2=Lowercase Letters, 3=Characters.</xsd:documentation>
</xsd:annotation>
<xsd:simpleType>
<xsd:restriction base="xsd:integer">
<xsd:enumeration value="0" />
<xsd:enumeration value="1" />
<xsd:enumeration value="2" />
<xsd:enumeration value="3" />
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="Length" type="xsd:string">
<xsd:annotation>
<xsd:documentation>The maximum length in characters. This element is omitted when length is "any".</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="Separator" type="xsd:string">
<xsd:annotation>
<xsd:documentation>The separator character of the node.</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>