Warning: Type is restricted by a facet pattern that may impede a full round-tripping of instances of this type
Clash 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.
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.
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