Force use of CDATA in XML-schema

后端 未结 1 1706
暖寄归人
暖寄归人 2020-12-10 19:18

I am creating an xml schema, and I want to make sure that the values in all the elements are CDATA elements.

Is there a way to force this using XML-schema?

相关标签:
1条回答
  • 2020-12-10 19:30

    As I recall XML Schema works on the XML Infoset, meaning with the XML document after it is parsed, entities are resolved, whitespace is normalised and CDATA is processed. CDATA is a way of easing the textual serialization not a part of the structural model. So: No. Neither in DTDs or RELAX NG.

    0 讨论(0)
提交回复
热议问题