Imported from previous forum
Hi!
This is about ¿how to extend/remove attributes for an existing fixml message?
I read that the “impl” file is the right place to do it…but ¿how?
Just and example:
I want to add “XreqQty” attribute in the MarketDataRequest and remove “ReqId” attrbute in the same message.
And then ¿how to do/what should I write it in the “fixml-marketdata-impl-5-0-sp2.xsd”?.
To summarize, I want a MarketDataRequest msg with different fields.
I´ve been reading in forums, etc… but really I didn´t get the answer. I saw some FIXML extensions and all of them were done in the “base” files.
Thanks
Hi,
More or less what I need to do is redefine a “base” FIX message into their IMPL file
A simple example could be:
BASE.XSD
<xs:schema xmlns:xs=“http://www.w3.org/2001/XMLSchema”>
<xs:group name=“MsgElements”>
xs:sequence
<xs:element name=“Regs” type=“InfoRegsGrp_Block_t” maxOccurs=“unbounded”/>
</xs:sequence>
</xs:group>
<xs:attributeGroup name=“MsgAttributes”>
<xs:attribute name=“ReqId” type=“xs:string” use=“required”/>
<xs:attribute name=“ReqTyp” type=“xs:string” use=“optional”/>
</xs:attributeGroup>
<xs:complexType name=“Msg_message_t” final=“#all”>
<xs:group ref=“MsgElements”/>
<xs:attributeGroup ref=“MsgAttributes”/>
</xs:complexType>
<xs:element name=“Msg” type=“Msg_message_t” final=“#all”/>
<xs:group name=“InfoRegsGrpElements”>
xs:sequence/
</xs:group>
<xs:attributeGroup name=“InfoRegsGrpAttributes”>
<xs:attribute name=“Regs” type=“xs:string” use=“required”/>
</xs:attributeGroup>
<xs:complexType name=“InfoRegsGrp_Block_t”>
xs:sequence
<xs:group ref=“InfoRegsGrpElements”/>
</xs:sequence>
<xs:attributeGroup ref=“InfoRegsGrpAttributes”/>
</xs:complexType>
</xs:schema>
IMPL.XSD
<xs:schema xmlns:xs=“http://www.w3.org/2001/XMLSchema”>
<xs:redefine schemaLocation=“ex-msg-base.xsd”>
<xs:complexType name=“Msg_message_t” final=“#all”>
xs:complexContent
<xs:extension base=“Msg_message_t”>
xs:sequence
<xs:group ref=“MsgElements”/>
</xs:sequence>
<xs:attributeGroup ref=“MsgxAttributes”/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:redefine>
<xs:element names=“Msg” type=“Msg_message_t” final=“#all”/>
<xs:group name=“MsgElements”>
xs:sequence/
</xs:group>
<xs:attributeGroup name=“MsgxAttributes”>
<xs:attribute name=“Class” type=“xs:string” use=“required”/>
<xs:attribute name=“ReqTyp” type=“xs:string” use=“required”/>
<xs:attribute name=“ReqId” type=“xs:string” use=“optional”/>
</xs:attributeGroup>
</xs:schema>
(I prefer this example instead a real one, using all of the base & impl files in the fixml 5.0)
What I need is, in this example, remove de group MsgElements, add a new attribute (Class) and change the “use” of ReqId from required to optional.
But doing this I get problems when validate the schema…
Thanks in advance
Hi!
This is about ¿how to extend/remove attributes for an existing fixml message?
I read that the “impl” file is the right place to do it…but ¿how?
Just and example:
I want to add “XreqQty” attribute in the MarketDataRequest and remove “ReqId” attrbute in the same message.
And then ¿how to do/what should I write it in the “fixml-marketdata-impl-5-0-sp2.xsd”?.To summarize, I want a MarketDataRequest msg with different fields.
I´ve been reading in forums, etc… but really I didn´t get the answer. I saw some FIXML extensions and all of them were done in the “base” files.
Thanks