We are using XSD schema validation before loading the XML file . So while loading the XML with XSD schema validation it is accepting the blank space at beginning and end of the string. We need to restrict the blank space at beginning of the string and end of the string only . But middle of the string we need to accept the blank space between the strings.
Example : SOMEXMLFIELD ="STACK OVER FLOW" .
For this we had configure the below XSD pattern value for schema validation.
Example : <xs:pattern value="^[A-Za-z0-9 _.,']*[A-Za-z0-9_.,']+[A-Za-z0-9 _.,']*$"/>
Can anyone please suggest how can I restrict the blank space at beginning and end of the string only ( Note : We need to accept the blank space between strings ) ? .