我想嵌入 HTML 格式,所以我做到了
<xs:element name="boobie">
<xs:complexType mixed="true">
<xs:sequence>
<xs:any namespace="http://www.w3.org/1999/xhtml"
minOccurs="0"
maxOccurs="unbounded"
processContent="skip"/>
</xs:sequence>
</xs:complexType>
</xs:element>
但是,当我将 li 标记(HTML 的点元素)放入 XML 文件(在 boobie 标记内)时,它会生成出乎意料的错误。
这有什么问题?将 html 标记放入 XMl 文件的唯一方法是使用 CDATA 吗?