0

我有这个 XSD,我正在尝试使用 NATIVEXML (Delphi) 创建 XML 文件。

<xs:element maxOccurs="unbounded" name="Program">
 <xs:complexType>
  <xs:attribute name="Provider" use="required">
   <xs:simpleType>
    <xs:restriction base="xs:string">
     <xs:minLength value="2" />
     <xs:maxLength value="6" />
    </xs:restriction>
   </xs:simpleType>
  </xs:attribute>
  <xs:more attributes\>
 </xs:complexType>
</xs:element>

我创建了以下代码:

node := Adoc.Root.NodeNew('Student');
node.WriteAttributeInteger('Provider',var_with_data);

如何创建限制?

4

0 回答 0