How to restrict an element to be non-empty through xsd -


i need restrict elements in xml file non empty using xsd files. can force elements contain cdata sections?

the tool have xs:string pattern restriction in below. cdata alternative escaping entity references. should use entity references in pattern.

<simpletype name="newtype2">     <restriction base="string">         <minlength value="5"></minlength>         <maxlength value="30"></maxlength>         <pattern value="(&lt;html&gt;).*(&lt;/html&gt;)"></pattern>     </restriction> </simpletype> 

Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -