I want to set element name dynamically that means it's come from database,
我想动态设置元素名称,这意味着它来自数据库,
for eg, Afdeling,Fabrikant,Promo etc.
例如,Afdeling,Fabrikant,Promo等。
How can i set this in xml schema currently i have set this static.
我如何在xml架构中设置此项目前我已将此设置为静态。
<xs:element minOccurs="0" maxOccurs="1" name="Afdeling" type="xs:string" />
<xs:element minOccurs="0" maxOccurs="1" name="Fabrikant" type="xs:string" />
<xs:element minOccurs="0" maxOccurs="1" name="Promo" type="xs:string" />
1 个解决方案
#1
0
You can use an element wildcard: <xs:any>
. You can't then constrain the element name any further in the schema (except to make it appear in a particular namespace) unless you use XSD 1.1 assertions.
您可以使用元素通配符:
#1
0
You can use an element wildcard: <xs:any>
. You can't then constrain the element name any further in the schema (except to make it appear in a particular namespace) unless you use XSD 1.1 assertions.
您可以使用元素通配符: