If it is possible you can have two MQInputNodes in your flow, each one representing the respective message format. This way you can differentiate between the two.
Regards,
Gaurav
Tags
Use the search field to
find all types of content in My developerWorks with that tag.
Use the slider bar to see more or fewer tags.
Popular tags shows the top tags for this particular type of content or application that you're viewing.
My tags shows your tags for this particular type of content or application that
you're viewing.