我如何限制元素的文本? [重复]

时间:2022-10-02 17:19:53

Possible Duplicate:
DTD element type problem

可能重复:DTD元素类型问题

I have an xml in which i have element facilities.

我有一个xml,其中我有元素设施。

Internet

互联网

Facilities can have at least one or more of the followings: Internet, Gym, Free Parking, Restaurant, Pick-up, Pool, Conference hall, Banquet hall. How can i apply this in dtd and schema

设施可以至少有以下一项或多项:互联网,健身房,免费停车场,餐厅,接送,游泳池,会议厅,宴会厅。我如何在dtd和架构中应用它

1 个解决方案

#1


1  

you can certainly do that with the schema, that allows you to restrict values to an enumeration of set values. More information on this Stack question

您当然可以使用模式执行此操作,该模式允许您将值限制为设置值的枚举。有关此Stack问题的更多信息

#1


1  

you can certainly do that with the schema, that allows you to restrict values to an enumeration of set values. More information on this Stack question

您当然可以使用模式执行此操作,该模式允许您将值限制为设置值的枚举。有关此Stack问题的更多信息