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="(<html>).*(</html>)"></pattern> </restriction> </simpletype>
Comments
Post a Comment