I want to define an XML schema which allows elements like this:
<Element>TYPE1</Element>
<Element>TYPE2</Element>
<Element>TYPE3</Element>
<Element>Any Other Text</Element>
In this case, TYPE1, TYPE2 and TYPE3 are enumerated strings. However, the schema also allows any text content in Element.
This seems like a strange restriction. Here is why I want the type to be a pseudo-enumeration. I want it to be an enumeration so that autocomplete (called intellesense in Visual Studio) will work in XML editors. However, the enumeration list isn't a hard constraint because the software (Java) ingests the XML document using JAXB and is robust to values that aren't enumerated.
I can provide more details if they are needed.