I am preparing XSD for some XML file required in my application. Snap shot of the XML is shown here:
<Role HomeFolder="All Folders\Sales" />
Specified XML has one attributes: HomeFolder. While preparing XSD, I want to put constraint that attribute value HomeFolder should have atlest some value in it. It should not just have white spaces only.
HomeFolder="All Folders" - Valid
HomeFolder=" All Folders " - Valid
HomeFolder=" " - Invalid (tab as whitespace character)
HomeFolder=" " - Invalid (space as whitespace character)
HomeFolder="" - Invalid
Would you please let me know whether it is possible to assign such rules (for attribute) in XSD or not?