Date time string with format attribute 205 shall be YYYYMMDDHHMMSS.
The content of such a udt:DateTimeString element does not match the expected year, month, day, hour, minute, and second pattern in the order YYYYMMDDHHMMSS.
This format represents the date and time as a continuous string with a four-digit year and two digits each for the month, day, hour, minute, and second.
The content of udt:DateTimeString with format="205" does not match the expected date and time format. You can adjust the value to match this pattern.
- Check the content of
udt:DateTimeStringwithformat="205". - Provide the year, month, day, hour, minute, and second in that order.
- Generate the invoice again and validate it once more.
<udt:DateTimeString format="205">20241315123045</udt:DateTimeString>
<udt:DateTimeString format="205">20241115123045</udt:DateTimeString>
Technical details
The XPath checks the element text with a regular expression. Surrounding whitespace is allowed; the month, day, and time are checked against the numeric ranges specified by the pattern.
The rule applies to udt:DateTimeString elements with the attribute format="205".
rule/@context)assert/@test)