属性表的 XML 架构定义

更新:2007 年 11 月

属性表使用以下架构。

<?xml version="1.0" encoding="utf-8" ?> 
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
   <xs:element name="VisualStudioPropertySheet" type="VisualStudioPropertySheetType" /> 
   <xs:complexType name="VisualStudioPropertySheetType">
      <xs:sequence minOccurs="0" maxOccurs="1">
         <xs:element name="Tool" minOccurs="0" maxOccurs="unbounded">
            <xs:complexType>
               <xs:anyAttribute processContents="skip" /> 
            </xs:complexType>
         </xs:element>
         <xs:element name="UserMacro" minOccurs="0" maxOccurs="unbounded">
            <xs:complexType>
               <xs:attribute name="Name" type="xs:string" use="required" /> 
               <xs:attribute name="Value" type="xs:string" use="required" /> 
               <xs:attribute name="InheritsFromParent" type="xs:string" use="optional" /> 
               <xs:attribute name="Delimiter" type="xs:string" use="optional" /> 
               <xs:attribute name="PerformEnvironmentSet" type="xs:string" use="optional" /> 
            </xs:complexType>
         </xs:element>
      </xs:sequence>
   <xs:attribute name="ProjectType" type="xs:string" use="required" fixed="Visual C++" /> 
   <xs:attribute name="Version" type="xs:string" use="required" fixed="8.00" /> 
   <xs:attribute name="Name" type="xs:string" use="required" /> 
   <xs:anyAttribute processContents="skip" /> 
   </xs:complexType>
</xs:schema>

请参见

概念

属性表 (C++)