2

我想生成一个 XSD 文件,如下所示:

<xsd:schema>
  <xsd:element name="dataroot">
    <xsd:complexType>
      <xsd:sequence>
        <xsd:element ref="sys_lookups" minOccurs="0" maxOccurs="unbounded" />
      </xsd:sequence>
      <xsd:attribute name="generated" type="xsd:dateTime" />
    </xsd:complexType>
  </xsd:element>
  <xsd:element name="sys_lookups">
    <xsd:annotation>
      <xsd:appinfo>
        <od:index index-name="PrimaryKey" index-key="lookup_group lookup_value " primary="yes"
        unique="yes" clustered="no" order="asc asc" />
        <od:tableProperty name="Orientation" type="2" value="0" />
        <od:tableProperty name="OrderByOn" type="1" value="0" />
        <od:tableProperty name="NameMap" type="11" value="CswOVQAAAAAM8V6233tZSa18EF/EE1ddAAAAAMKLl3SLseNAAAAAAPgDAABzAHkA cwBfAGwAbwBvAGsAdQBwAHMAAAAAAAAABAYOkgXfa0WRIWHmYxfAYQcAAAAM8V62 33tZSa18EF/EE1ddbABvAG8AawB1AHAAXwBnAHIAbwB1AHAAAAAAAAAAvzD1RGJn 8kWa0lYnVRxv2QcAAAAM8V6233tZSa18EF/EE1ddbABvAG8AawB1AHAAXwB2AGEA bAB1AGUAAAAAAAAA05MSrGDnGkShEFWKASLxOAcAAAAM8V6233tZSa18EF/EE1dd cwBvAHIAdABfAG8AcgBkAGUAcgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAAAAAQA 
AAAAAAAAAAAAAAAAAAAAAA== "
        />
        <od:tableProperty name="DefaultView" type="2" value="2" />
        <od:tableProperty name="GUID" type="9" value="DPFett97WUmtfBBfxBNXXQ== " />
        <od:tableProperty name="DisplayViewsOnSharePointSite" type="2" value="1" />
        <od:tableProperty name="TotalsRow" type="1" value="0" />
        <od:tableProperty name="FilterOnLoad" type="1" value="0" />
        <od:tableProperty name="OrderByOnLoad" type="1" value="1" />
        <od:tableProperty name="HideNewField" type="1" value="0" />
      </xsd:appinfo>
    </xsd:annotation>
    <xsd:complexType>
      <xsd:sequence>
        <xsd:element name="lookup_group" minOccurs="0" od:jetType="text" od:sqlSType="nvarchar">
          <xsd:annotation>
            <xsd:appinfo>
              <od:fieldProperty name="ColumnWidth" type="3" value="7140" />
              <od:fieldProperty name="ColumnOrder" type="3" value="1" />
              <od:fieldProperty name="ColumnHidden" type="1" value="0" />
              <od:fieldProperty name="Required" type="1" value="0" />
              <od:fieldProperty name="AllowZeroLength" type="1" value="1" />
              <od:fieldProperty name="DisplayControl" type="3" value="109" />
              <od:fieldProperty name="IMEMode" type="2" value="0" />
              <od:fieldProperty name="IMESentenceMode" type="2" value="3" />
              <od:fieldProperty name="UnicodeCompression" type="1" value="0" />
              <od:fieldProperty name="TextAlign" type="2" value="0" />
              <od:fieldProperty name="AggregateType" type="4" value="-1" />
              <od:fieldProperty name="GUID" type="9" value="BAYOkgXfa0WRIWHmYxfAYQ== " />
            </xsd:appinfo>
          </xsd:annotation>
          <xsd:simpleType>
            <xsd:restriction base="xsd:string">
              <xsd:maxLength value="128" />
            </xsd:restriction>
          </xsd:simpleType>
        </xsd:element>
        <xsd:element name="lookup_value" minOccurs="0" od:jetType="text" od:sqlSType="nvarchar">
          <xsd:annotation>
            <xsd:appinfo>
              <od:fieldProperty name="ColumnWidth" type="3" value="-1" />
              <od:fieldProperty name="ColumnOrder" type="3" value="0" />
              <od:fieldProperty name="ColumnHidden" type="1" value="0" />
              <od:fieldProperty name="Required" type="1" value="0" />
              <od:fieldProperty name="AllowZeroLength" type="1" value="1" />
              <od:fieldProperty name="DisplayControl" type="3" value="109" />
              <od:fieldProperty name="IMEMode" type="2" value="0" />
              <od:fieldProperty name="IMESentenceMode" type="2" value="3" />
              <od:fieldProperty name="UnicodeCompression" type="1" value="1" />
              <od:fieldProperty name="TextAlign" type="2" value="0" />
              <od:fieldProperty name="AggregateType" type="4" value="-1" />
              <od:fieldProperty name="GUID" type="9" value="vzD1RGJn8kWa0lYnVRxv2Q== " />
            </xsd:appinfo>
          </xsd:annotation>
          <xsd:simpleType>
            <xsd:restriction base="xsd:string">
              <xsd:maxLength value="255" />
            </xsd:restriction>
          </xsd:simpleType>
        </xsd:element>
        <xsd:element name="sort_order" minOccurs="0" od:jetType="longinteger" od:sqlSType="int"
        type="xsd:int">
          <xsd:annotation>
            <xsd:appinfo>
              <od:fieldProperty name="ColumnWidth" type="3" value="-1" />
              <od:fieldProperty name="ColumnOrder" type="3" value="0" />
              <od:fieldProperty name="ColumnHidden" type="1" value="0" />
              <od:fieldProperty name="DecimalPlaces" type="2" value="255" />
              <od:fieldProperty name="Required" type="1" value="0" />
              <od:fieldProperty name="DisplayControl" type="3" value="109" />
              <od:fieldProperty name="TextAlign" type="2" value="0" />
              <od:fieldProperty name="AggregateType" type="4" value="-1" />
              <od:fieldProperty name="GUID" type="9" value="05MSrGDnGkShEFWKASLxOA== " />
            </xsd:appinfo>
          </xsd:annotation>
        </xsd:element>
      </xsd:sequence>
    </xsd:complexType>
  </xsd:element>
</xsd:schema>

我对上述 xsd 有以下问题:

  1. tableproperty "NameMap" 的值是多少,是否已加密。如果是,那怎么办?
  2. 是“GUID”128 位但已加密。如果是,那怎么办?

我是 XML 和 XSD 的新手,所以如果它们是愚蠢的问题,请原谅我 ;)。

在此先感谢,KS

4

0 回答 0