Convert FIX Message XML

Convert FIX Message XML

In previous tutorial you saw how to convert String to FIX message and Parse FIX message read its actual value. Everything is same from previous example only when your FIX message got build you will have to toXML method to convert it XML format. I will be writing complete program here as well because if somebody directly comes to this page without visiting previous tutorial.

Note: You could directly downlaed QuickFix jar from its web site here. To make this example work right away I have used quickfixj-all 1.6.0 version where you could convert your string message to any FIX version and for this example we are using FIX 4.2.

  • FixMessageTypeFields.java:

  • ParseFIXMessageToXML.java:

  • Output:

Convert FIX Message XML

Leave a Reply

Your email address will not be published. Required fields are marked *