XML Schema for the <OutlineCode> Element

The following shows the <OutlineCode> element schema for Microsoft Office Project 2003. This is a child of the <Project> schema.

See Also

Overview of XML Schema for Project
Overview of XML Structure for Project
XML Structure for the <OutlineCode> Element
<OutlineCodes> Element

<?xml version="1.0"?>
   ...
<!-- @OutlineCode schema -->
<xsd:element name="OutlineCodes" minOccurs="0">
    <xsd:annotation>
        <xsd:documentation>The collection of outline code definitions associated with the project.  These codes may be associated only with this project, or may be common among several projects (enterprise codes).</xsd:documentation>
    </xsd:annotation>
    <xsd:complexType>
        <xsd:sequence>
            <xsd:element name="OutlineCode" minOccurs="0" maxOccurs="unbounded">
                <xsd:annotation>
                    <xsd:documentation>The individual outline codes.</xsd:documentation>
                </xsd:annotation>
                <xsd:complexType>
                    <xsd:sequence>
                        <xsd:element name="FieldID" type="xsd:string" minOccurs="0">
                            <xsd:annotation>
                                <xsd:documentation>Coresponds to the field number of outline code.</xsd:documentation>
                            </xsd:annotation>
                        </xsd:element>
                        <xsd:element name="FieldName" type="xsd:string" minOccurs="0">
                            <xsd:annotation>
                                <xsd:documentation>The name of the custom outline code.</xsd:documentation>
                            </xsd:annotation>
                        </xsd:element>
                        <xsd:element name="Alias" type="xsd:string" minOccurs="0">
                            <xsd:annotation>
                                <xsd:documentation>The alias of the custom outline code.</xsd:documentation>
                            </xsd:annotation>
                        </xsd:element>
                        <xsd:element name="PhoneticAlias" type="xsd:string" minOccurs="0">
                            <xsd:annotation>
                                <xsd:documentation>The phonetic pronunciation of the alias of the custom outline code.</xsd:documentation>
                            </xsd:annotation>
                        </xsd:element>
                        <xsd:element name="Values" minOccurs="0">
                            <xsd:annotation>
                                <xsd:documentation>The values of the table associated with this outline code.</xsd:documentation>
                            </xsd:annotation>
                            <xsd:complexType>
                                <xsd:sequence minOccurs="0" maxOccurs="unbounded">
                                    <xsd:element name="Value">
                                        <xsd:annotation>
                                            <xsd:documentation>The individual values.</xsd:documentation>
                                        </xsd:annotation>
                                        <xsd:complexType>
                                            <xsd:all>
                                                <xsd:element name="ValueID" type="xsd:integer" minOccurs="0">
                                                    <xsd:annotation>
                                                        <xsd:documentation>The unique ID of the outline code value across the project.</xsd:documentation>
                                                    </xsd:annotation>
                                                </xsd:element>
                                                <xsd:element name="ParentValueID" type="xsd:integer" minOccurs="0">
                                                    <xsd:annotation>
                                                        <xsd:documentation>The value of the parent node of the outline code.</xsd:documentation>
                                                    </xsd:annotation>
                                                </xsd:element>
                                                <xsd:element name="Value" type="xsd:string" minOccurs="0">
                                                    <xsd:annotation>
                                                        <xsd:documentation>The actual value.</xsd:documentation>
                                                    </xsd:annotation>
                                                </xsd:element>
                                                <xsd:element name="Description" type="xsd:string" minOccurs="0">
                                                    <xsd:annotation>
                                                        <xsd:documentation>A description of this value.</xsd:documentation>
                                                    </xsd:annotation>
                                                </xsd:element>
                                            </xsd:all>
                                        </xsd:complexType>
                                    </xsd:element>
                                </xsd:sequence>
                            </xsd:complexType>
                        </xsd:element>
                        <xsd:element name="Enterprise" type="xsd:boolean" minOccurs="0">
                            <xsd:annotation>
                                <xsd:documentation>Indicates whether the custom outline code is an enterprise custom outline code.</xsd:documentation>
                            </xsd:annotation>
                        </xsd:element>
                        <xsd:element name="EnterpriseOutlineCodeAlias" type="xsd:integer" minOccurs="0">
                            <xsd:annotation>
                                <xsd:documentation>A reference to another custom field for which this is an alias.</xsd:documentation>
                            </xsd:annotation>
                        </xsd:element>
                        <xsd:element name="ResourceSubstitutionEnabled" type="xsd:boolean" minOccurs="0">
                            <xsd:annotation>
                                <xsd:documentation>Whether the custom outline code can be used by the Resource Substitution Wizard in Microsoft Project.</xsd:documentation>
                            </xsd:annotation>
                        </xsd:element>
                        <xsd:element name="LeafOnly" type="xsd:boolean" minOccurs="0">
                            <xsd:annotation>
                                <xsd:documentation>Whether or not values specified in this outline code field must be leaf values.</xsd:documentation>
                            </xsd:annotation>
                        </xsd:element>
                        <xsd:element name="AllLevelsRequired" type="xsd:boolean" minOccurs="0">
                            <xsd:annotation>
                                <xsd:documentation>New codes must have all levels present.  Not available for Enterprise Codes.</xsd:documentation>
                            </xsd:annotation>
                        </xsd:element>
                        <xsd:element name="OnlyTableValuesAllowed" type="xsd:boolean" minOccurs="0">
                            <xsd:annotation>
                                <xsd:documentation>Whether values specified must come from values table.</xsd:documentation>
                            </xsd:annotation>
                        </xsd:element>
                        <xsd:element name="Masks" 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="Mask" minOccurs="0" maxOccurs="unbounded">
                                        <xsd:annotation>
                                            <xsd:documentation>The four elements of the mask constitute the format in which the outline code must appear.</xsd:documentation>
                                        </xsd:annotation>
                                        <xsd:complexType>
                                            <xsd:sequence>
                                                <xsd:element name="Level" type="xsd:integer" minOccurs="0">
                                                    <xsd:annotation>
                                                        <xsd:documentation>The level of the mask.</xsd:documentation>
                                                    </xsd:annotation>
                                                </xsd:element>
                                                <xsd:element name="Type" minOccurs="0">
                                                    <xsd:annotation>
                                                        <xsd:documentation>The type of mask. Values are: 0=Numbers, 1=Upper Case Letters, 2=Lower Case 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:integer" minOccurs="0">
                                                    <xsd:annotation>
                                                        <xsd:documentation>The maximum length in characters of the outline code values.  If length is any, the value is zero.</xsd:documentation>
                                                    </xsd:annotation>
                                                </xsd:element>
                                                <xsd:element name="Separator" type="xsd:string" minOccurs="0">
                                                    <xsd:annotation>
                                                        <xsd:documentation>The separator value of the code values.</xsd:documentation>
                                                    </xsd:annotation>
                                                </xsd:element>
                                            </xsd:sequence>
                                        </xsd:complexType>
                                    </xsd:element>
                                </xsd:sequence>
                            </xsd:complexType>
                        </xsd:element>
                    </xsd:sequence>
                </xsd:complexType>
            </xsd:element>
        </xsd:sequence>
    </xsd:complexType>
</xsd:element>