Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

convert xml byte format message

 
D Wynn
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would like to convert a XML message thats byte format to a textmessage how can I do this?
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13064
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
XML documents are expected to be composed of UNICODE characters. What does "byte format" mean?

Just about any XML tutorial should get you started.

Bill
 
D Wynn
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The messages are in byte format, so in the onMessage method when I try to unmarshaller the message as a TextMessage my program throws exception...
 
Paul Clapham
Sheriff
Posts: 21133
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What does "byte format" mean in this context, then? And what's a "TextMessage"? And is this unmarshalling you're doing something to do with JAXB or something else?

Please read this: TellTheDetails.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic