XML Schema: xs:any processcontent="skip" but still returns error
Posted
by
Jane Doe
on Stack Overflow
See other posts from Stack Overflow
or by Jane Doe
Published on 2012-09-30T02:47:11Z
Indexed on
2012/09/30
3:37 UTC
Read the original article
Hit count: 400
I wanted to embed HTML formatting and so I did
<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>
However, when I put li tag (dot point element for HTML) inside the XML file (inside boobie tag) it generates error that it is unexpected.
What is wrong with this? is the only way to put html tag inside XMl file is to use CDATA?
© Stack Overflow or respective owner