Warning while creating XML Schema collection in SQL Server 2008

fdsfsdf

New Member
I run below script for creation of XML Schema Collection.\[code\]Create XML SCHEMA COLLECTION TestSchemaAS'<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="Element"> <xs:complexType> <xs:all> <xs:element name="Element1"> <xs:simpleType> <xs:restriction base="xs:integer"> <xs:minInclusive value="http://stackoverflow.com/questions/11139834/1"/> <xs:maxInclusive value="http://stackoverflow.com/questions/11139834/3"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Element2"> <xs:simpleType> <xs:restriction base="xs:integer"> <xs:pattern value="http://stackoverflow.com/questions/11139834/[369]0"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Element3"> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:minInclusive value="http://stackoverflow.com/questions/11139834/0.01"/> <xs:maxInclusive value="http://stackoverflow.com/questions/11139834/0.1"/> <xs:fractionDigits value="http://stackoverflow.com/questions/11139834/9"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:all> </xs:complexType> </xs:element>\[/code\]'Script generates warning as Warning: Type 'xs-nun(/Element/complexType()/all()/Element2/simpleType())' is restricted by a facet 'pattern' that may impede full round-tripping of instances of this type.i assume problem is in line xs:pattern value="http://stackoverflow.com/questions/11139834/[369]0" but not able understand whats wrong in it?when tried with xs:enumeration works fine.can anyone please explain why is this happening?Thanks...
 
Back
Top