Author
Need to Parse XML Message from my Message Driven Bean
Ravi Kiran V
Ranch Hand
Joined: Apr 18, 2009
Messages: 1203
posted Feb 07, 2010 00:04:44
Hi
I am using Message Driven Beans for listening to a Queue .
I am getting a Big XML file from my Queue in form of a TextMessage .
Now my task is to read / parse the XML Message .
Please tell me what is the apprpiate parsing technique i need to use (Should i use SAX or DOM )
Please share your ideas .
Thank you .
I tried to change the world, but I couldn’t find the source code
Jeanne Boyarsky
internet detective
Sheriff
Joined: May 26, 2003
Messages: 17177
posted Feb 07, 2010 08:57:37
What do you think? Hint: the size of the message is an important criteria.
[Blog ] [JavaRanch FAQ ] [How To Ask Questions The Smart Way ] [Book Promos ]
"The set strikes me as something like the set of potatoes, radishes, farming, and lunch. " - a colleague's way of comparing both overlapping and disparate groups. made me laugh and thought of the ranch
Ravi Kiran V
Ranch Hand
Joined: Apr 18, 2009
Messages: 1203
posted Feb 07, 2010 09:08:38
Thanks ,
the XML file is already present in the form of an String message .(An XML file writte using Xstream API) .
the lines are nearly about 80 lines .
So suggest me a good approach .
I tried to change the world, but I couldn’t find the source code