We have an element defined as :
<xs:element name="TEXT" type="xs:string" minOccurs="0"/>
In an XSD that we are using. Now this element will actually contain another XML.
Now, when we are trying to validate the input XML against this XSD, the XML is not getting validated.
However if we use any
string (for eg , 'abc') in the TEXT element (which is essentially not an XML) it is getting validated.
Our question is , what do we need to do to pass a string in the XML format in the text element and still ensure that it is getting validated wrt the XSD.