I don't understand why I'm getting the error when validating against a a schema file in Visual Studio.
My phone number value is 10 digits with no alpha, yet the intellisense tells me the phone number cannot contain text.
Any ideas?
Thanks in advance.
phone number value = 9999999999
xml
schema
My phone number value is 10 digits with no alpha, yet the intellisense tells me the phone number cannot contain text.
Any ideas?
Thanks in advance.
phone number value = 9999999999
xml
Code:
<PhoneNumber PhoneNumberType="Work">9999999999</PhoneNumber>
schema
Code:
<xs:simpleType name="PhoneNumberValue">
<xs:restriction base="xs:string">
<xs:maxLength value="14"/>
<xs:pattern value="\d{10,14}"/>
</xs:restriction>
</xs:simpleType>