为什么在此 xsd架构中时间戳类型的长度为8个字符?
<xsd:simpleType name="timestamp"> <xsd:restriction base="xsd:base64Binary"> <xsd:maxLength value="8"/> </xsd:restriction>我认为长度应该是12个字符。
示例:0x00000000000007D1 - > AAAAAAAAB9E =
Why in this xsd schema Timestamp type has length 8 characters?
<xsd:simpleType name="timestamp"> <xsd:restriction base="xsd:base64Binary"> <xsd:maxLength value="8"/> </xsd:restriction>I think that length should be 12 characters.
Example: 0x00000000000007D1 -> AAAAAAAAB9E=
最满意答案
base64Binary值的maxLength facet是二进制值中的最大八位字节数,而不是词法表示中的最大字符数。
The maxLength facet for a base64Binary value is the maximum number of octets in the binary value, not the maximum number of characters in the lexical representation.
XML架构中xsd:base64Binary的时间戳(Timestamp to xsd:base64Binary in XML Schema)为什么在此 xsd架构中时间戳类型的长度为8个字符?
<xsd:simpleType name="timestamp"> <xsd:restriction base="xsd:base64Binary"> <xsd:maxLength value="8"/> </xsd:restriction>我认为长度应该是12个字符。
示例:0x00000000000007D1 - > AAAAAAAAB9E =
Why in this xsd schema Timestamp type has length 8 characters?
<xsd:simpleType name="timestamp"> <xsd:restriction base="xsd:base64Binary"> <xsd:maxLength value="8"/> </xsd:restriction>I think that length should be 12 characters.
Example: 0x00000000000007D1 -> AAAAAAAAB9E=
最满意答案
base64Binary值的maxLength facet是二进制值中的最大八位字节数,而不是词法表示中的最大字符数。
The maxLength facet for a base64Binary value is the maximum number of octets in the binary value, not the maximum number of characters in the lexical representation.
发布评论