Warning: Type is restricted by a facet pattern that may impede a full round-tripping of instances of this type

Multi tool use
Multi tool use

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP



Warning: Type is restricted by a facet pattern that may impede a full round-tripping of instances of this type



I always get these warnings for both my xsd:dateTime validation.


xsd:dateTime


+' <xsd:element name="ProductCreationDate" minOccurs="1" maxOccurs="1">'
+' <xsd:simpleType>'
+' <xsd:restriction base="xsd:dateTime">'
+' <xsd:whiteSpace value="collapse" fixed="true"/>'
+' <xsd:pattern value="d4-dd-ddTdd:dd:dd"/>'
+' </xsd:restriction>'
+' </xsd:simpleType>'
+' </xsd:element>'



And this warning displays on the Messages pane:



Warning: Type xs-nun(/ProductCreationDate/simpleType()) is restricted by a facet pattern that may impede a full round-tripping of instances of this type


xs-nun(/ProductCreationDate/simpleType())


pattern



Anyone knows how to get rid of this warning?




1 Answer
1



The tool, which you've not specified, is telling you that it may not be capable of round-tripping through this constraint. Remove the pattern (or really the entire restriction), if you want to remove the warning, or ignore it if you don't care about round-tripping.


pattern


restriction



Note that such round-tripping concerns are not usually reported by validating parsers. Perhaps you're using a tool that does mapping to object oriented classes (e.g. JAXB or xsd.exe) where a simple validating XML parser would suffice.





The tool used is SSMS directly. I need to validate an XML document from a column prior to put the doc's content into a proper table.
– Will Marcouiller
9 secs ago






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

IIaJ4AxNdx2,27Ujm3PkOuyBpAPP,Zcz,OyJ,yJlljz
C7,a,GDNdT,szNHN9Er,T0NBeDrNc62 9xQxOhNZ7K0te C37ZA3yk 6TGEYOEu,1v9pZEfTD8fF8vf9PX2RMVhkXFqTy

Popular posts from this blog

Firebase Auth - with Email and Password - Check user already registered

Dynamically update html content plain JS

Store custom data using WC_Cart add_to_cart() method in Woocommerce 3