We are having messages in IBM Websphere MQ messages. The format is XML.

Message Format:

<NS1:MW1_005B_3_CBO xmlns:NS1="http://sharedresources.cbo" xmlns:shd="http://sharedresources.shd" xmlns:ems="http://sharedresources.ems">

When we are trying to consume the message using the IBM Websphere MQ consumer node getting the below error:
java.lang.ClassCastException: com.ibm.jms.JMSBytesMessage cannot be cast to javax.jms.TextMessage

But when the message format is mentioned below. Successfully consuming the messages. How can we consume message when there is namespace
<MW1_005B_3_CBO >

Please provide some inputs