In my XML schema I have element of type string that I don't want to be empty (if it contains white-spaces etc I also consider it empty)
I applied restrinction I found at http://blogs.msdn.com/b/neerajag/archive/2005/08/12/450723.aspx
<xsd:restriction base = "xsd:string">
<xs:minLength value="1" />
<xs:pattern value=".*[^\s].*" />
</xsd:restriction>
What exactly does that pattern do and will do what I expect?