[xsde-users] Feature request: validate empty xs:base64binary element

Vrijnsen, Jeroen jeroen.vrijnsen at philips.com
Thu Feb 16 04:23:33 EST 2017


Hi,

I have the following XML schema:
<?xml version="1.0" encoding="UTF-8" ?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="Response">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="Name" type="xs:string" />
        <xs:element name="Message" type="xs:string" />
        <xs:element name="NestedResponse" type="xs:base64Binary" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>

When I try to validate the following XML:
<?xml version="1.0" encoding="utf-8"?>
<Response>
  <Name>TheName</ErrorName>
  <Message>What I want to say</Message>
  <NestedResponse />
</ErrorResponse>

It is reported as being invalid, as base64-binary element is empty. However, the XSD standard allows this (although vague about it).
I have made a local patch to libxsde\xsde\cxx\parser\validating\base64-binary.cxx, but it might be interesting to add this feature to the code base. Is it possible to do such a request, and if so, is there a timeline by which a new release will be available?

Kind regards,
Jeroen Vrijnsen

________________________________
The information contained in this message may be confidential and legally protected under applicable law. The message is intended solely for the addressee(s). If you are not the intended recipient, you are hereby notified that any use, forwarding, dissemination, or reproduction of this message is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message.


More information about the xsde-users mailing list