Jump to content


  • Posts

  • Joined

  • Last visited

mrx3cas's Achievements


Newbie (1/7)



  1. Hi boen_robot,What about occurrence specifier (*)? As it represents zero or more occurrences, if the string contains with out these characters is acceptable or not?I just want to know exactly what if there is any occurrence specifier in the pattern.Actually when the string contains only spaces and validation of that element against the schema is failing when I check with xml spy tool.I am getting the following message.File C:\test.xml is not valid. Value ' ' is not allowed for element <IDType>. Reason: it does not satisfy any of the defined patterns (see below) '[a-zA-Z0-9_\-]*' Error location: MBR / cus / bg / IDType Details cvc-pattern-valid: '' is not matched by the regular expressions of type definition '{anonymous}'. cvc-datatype-valid.1.1: For type definition '{anonymous}' the string '' is not pattern valid. cvc-simple-type.1: For type definition '{anonymous}' the string '' is not valid. cvc-type.3.1.3: The normalized value ' ' is not valid with respect to the type definition '{anonymous}'. cvc-elt.5.2.1: The element <IDType> is not valid with respect to the actual type definition '{anonymous}'.Can you please tell me the pattern specification along with the occurrence specifier.Thanks for giving reply.
  2. Hi,In schema pattern for one tag is defined like below. <xs:simpleType name="IDType"> <xs:restriction base="xs:string"> <xs:maxLength value="100"/> <xs:pattern value="[a-zA-Z0-9_\-]*"/> </xs:restriction></xs:simpleType> I just want to know what is the exact allowable values for IDType tag if pattern is specified like above?Thanks in advance.
  • Create New...