Imported from previous forum
We had a post last week about problem with MultipleCharValue not supporting multiple values. Thanks to Aitor for identifying this issue.
Indeed neither the MultipleCharValue and MultipleStringValue based fields, due to use of enumerations can support multiple values.
Working on a solution right now. First approach likely will be to remove enumerations. If anyone has an approach to support multiple -repeated enumerated values your help is appreciated.
This has been reported as FIXML-4 in FPL’s Jira system.
One approach is as follows - this was tested with XMLSpy
Concatenate the enumeration values for char values and include them into the xs:pattern value:
<xs:restriction base="xs:string">
<xs:pattern value="[012345689ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrst](\s[012345689ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrst])*"/>
</xs:restriction>
The following can work for MultipleStringValue fields:
<xs:restriction base="xs:string">
<xs:pattern value="((ADD)|(AON)|(CNH)|(DIR)|(E.W)|(FOK)|(IO)|(IOC)|(LOO)|(LOC)|(MAO)|(MAC)|(MOO)|(MOC)|(MQT)|(NH)|(OVD)|(PEG)|(RSV)|(S.W)|(SCL)|(TMO)|(TS)|(WRK))(\s((ADD)|(AON)|(CNH)|(DIR)|(E.W)|(FOK)|(IO)|(IOC)|(LOO)|(LOC)|(MAO)|(MAC)|(MOO)|(MOC)|(MQT)|(NH)|(OVD)|(PEG)|(RSV)|(S.W)|(SCL)|(TMO)|(TS)|(WRK)))*"/>
</xs:restriction>
Test schema that contains this proposed fix is available at: http://www.fixprotocol.org/specifications/fixmlschemamaintenance