XML Schema: Allowing HTML?

Status
Not open for further replies.

Dromio

Ars Scholae Palatinae
1,411
When developing a schema, is there any way to allow a node to contain mixed HTML and text? For example, I'd like the XML to end up like this:

code:<HR>
Code:
<DOCUMENT>
    <TITLE>Test Document</TITLE>
    <OVERVIEW>
        This is overview text.  It can contain <b>bold</b> stuff.

         And it can contain breaks.
    </OVERVIEW>
</DOCUMENT>

As it is, the XML is invalid because the <OVERVIEW> node cannot contain other elements. But I don't want to try to guess every HTML element a user may want to put in there.

Any tips?
 
Status
Not open for further replies.