title: How to resolve cvc-pattern-valid: Value '' is not facet-valid with respect to pattern problem
body: <p>I am trying to read <code>xsd</code> file and its throwing below <code>exception</code>:</p>
  
  <pre><code>cvc-pattern-valid: Value '' is not facet-valid with respect to pattern '[1-2][0-9]{3,3}(((0[1-9])|(1[0-2]))((0[1-9])|([0-2][0-9]|3[0-1])(([0-1][0-9]|2[0-3])([0-5][0-9]([0-5][0-9](\.[0-9]{1,4})?)?)?)?)?)?([+\-](0[0-9]|1[0-3])([0-5][0-9]))?' for type '#AnonType_valueTS'.
  
      final Schema schema = schemaFactory.newSchema(this.getClass().getClassLoader().getResource("/schemaorg_apache_xmlbeans/src/mySchema.xsd"));
        final Validator validator = schema.newValidator();
        final StreamSource xmlFile = new StreamSource(new ByteArrayInputStream(xmlString.getBytes("utf-8")));
        validator.validate(xmlFile);
  </code></pre>
  
  <p>This <code>validator.validate</code>(xmlFile) part is throwing <code>exception</code>.</p>
  
  <p>Any Idea? Appreciate your kind help here.</p>
  
  <p>and I have already looked in to below:
  <a href="https://stackoverflow.com/questions/9622869/cvc-pattern-valid-value-a-is-not-facet-valid-with-respect-to-pattern-a-za">Value is not facet-valid with respect to pattern</a><br /></p>
  
  <p><a href="https://stackoverflow.com/questions/34717674/validating-xml-get-the-element-name-that-throws-cvc-enumeration-valid">Validating xml. Get the element name that throws cvc-enumeration-valid</a></p>