我有一个看起来像这样的 xml 重复元素
<property label="V" name="volume" units="cm3" sourcetype="reported">...
</property>
<property label="P" name="pressure" units="atm" sourcetype="reported">...
</property>
<property label="tau" name="residence time" units="ms"
sourcetype="reported">...</property>
我想为它构建一个 xml 模式,以便在相同的标签名称“属性”下具有不同的标签名称和单位。这是我的尝试,显示错误
<xs:complexType>
<xs:sequence>
<xs:element label="V" name="volume" units="cm3" sourcetype="reported" />
<xs:element label="P" name="pressure" units="atm" sourcetype="reported" />
十分感谢