How do i designate in XSD that an element only contains CDATA?

前端 未结 2 480
无人共我
无人共我 2021-01-01 10:28

How can I represent the following in XSD.


    

2条回答
  •  隐瞒了意图╮
    2021-01-01 11:13

    A CDATA tag is merely a means of escaping data as a text node. Therefore you cannot stipulate that you require a CDATA node.

    From a DOM perspective, the following documents are identical:

    value
    

    and

    
    

提交回复
热议问题