xml - Problem with restricting the element to be non empty -


i want restrict elements non empty through schema. following doing

<xs:complextype name="criteriaatt"> <xs:simplecontent>   <xs:extension base="xs:string">     <xs:attribute ref="fielduri" use="required" />     <xs:attribute ref="compare" use="required" />   </xs:extension> </xs:simplecontent> 

and using above type in element want non empty. working fine 2 of 3 elements. third 1 simpletype element , giving me validation errors. not able understand why not working when same logic working rest of 2 elements. difference in these elements can see of complextype , simpletype. following doing simpletype element.

<xs:simpletype name="thentype"> <xs:restriction base="xs:string">   <xs:minlength value="1" /> </xs:restriction> 

if use above thentype inside element, error "the 'then' element has invalid argument value according datatype".


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#? -