How can I have a pattern that ignores html within an element rather than the validator trying to validate it
<stuff>
<data>
this is some text <b>with the odd</b> bit of html<p>and unclosed tags
</data>
</stuff>
This isn't valid but I tried things like
datatypes xs = "http://www.w3.org/2001/XMLSchema-datatypes"
start = stuff
stuff = element stuff
{
element data { * }
}
You can't allow arbitrary unmodified HTML within XML. Either escape the individual special characters (What are the official XML reserved characters?) or encapsulate the HTML within a CDATA container (Is it possible to insert HTML content in XML document?).