code_junkie

xsd pattern restriction - disallow backslash

Nov 12th, 2011
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. <xs:simpleType name="BackslashRestrictedField">
  2. <xs:restriction base="xs:string">
  3. <xs:minLength value="0" />
  4. <xs:pattern value="[^\]"/> <!-- disallow backslash '' char ??? -->
  5. </xs:restriction>
  6. </xs:simpleType>
Add Comment
Please, Sign In to add comment