This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds and have James Denton on-line!
See this thread for details.
Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Bulk XML messages  RSS feed

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need design advice on how to bulk smaller XML messages into one big XML message. Basically, we have XML messages that are getting posted to a JMS Topic. When we have 500 messages in the JMS topic, we want to bulk these 500 messages into one big XML message and make one database call(batch update) instead of 500 calls. What are the best ways of doing this. Also, are there other ideas of achieving the same thing. Thanks in advance.
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
which parser are you using ? Dom parser , sax parser or another one
 
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sounds like you want to build the text of a new document with a root that contains all the little documents.

I would certainly treat this as a pure text manipulation problem - exactly how depends on the content of the small messages. Do they start with a declaration like:


if so you will need to trim that text - having one inside the big document will cause an error.

Bill
 
Uma Reddy
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the responses. We are using sax parser
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!