FIXTradingCommunity / fix-simple-binary-encoding

A FIX standard for binary message encoding
Other
253 stars 67 forks source link

RC4 Example fails to validate against rc4 .xsd #71

Closed bkc closed 6 years ago

bkc commented 6 years ago

Hi,

I am trying to validate https://github.com/FIXTradingCommunity/fix-simple-binary-encoding/blob/master/v1-0-RC4/resources/Examples.xml

Using https://github.com/FIXTradingCommunity/fix-simple-binary-encoding/blob/master/v1-0-RC4/resources/SimpleBinary1-0.xsd

it fails to validate

xmlstarlet val -s tests/data/sbe_rc4.xsd -e tests/data/Examples_rc4.xml 
tests/data/Examples_rc4.xml:6.72: Element 'messageSchema': No matching global declaration available for the validation root.
tests/data/Examples_rc4.xml - invalid

Is the xsd only there to guide protocol developers, or is it intended to be used to validate protocol spec xml files?

I can get this to validate if I change the Example.xml <messageSchema> element to <sbe:messageSchema>

kleihan commented 6 years ago

Please do not use RC4 as SBE Version 1.0 has moved out of Release Candidate status since Feb 2017. The example in V1.0 (https://github.com/FIXTradingCommunity/fix-simple-binary-encoding/blob/master/v1-0-STANDARD/resources/Examples.xml) shows the correct syntax:

<sbe:messageSchema xmlns:sbe="http://fixprotocol.io/2016/sbe" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" package="Examples" id="91" version="0" byteOrder="littleEndian" xsi:schemaLocation="http://fixprotocol.io/2016/sbe sbe.xsd"> ...