• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Splitting of XML

 
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I have an XML which is of size 8 MB. The size of this XML is increasing constantly. For picking up the data from this XML, we are using Castor.

The problem is that it is increasingly becoming very difficult to maintain this XML. And also, the XML is taking huge space in Cache memory as we are loading this XML from database during the server start-up itself.

Now we are looking a solution through which we can:
1. Split the XML into parts (for better maintainance)
2. Occupy less cache size

and still do the castoring for retrieving the data from the xml.

Thanks in advance
 
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Since you are already "castoring", why not implement some functions that would 'write' the XML file into two or more logical parts. It should be something not overly complicated since you already have the Castor stuff in place.

Or am I completely off the track. :roll:

- m
 
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There is also a SAX implementation of XSLT - its a hybrid version called STX. This will help in maintaining the cache size in dealing with this huge XML file without loading it all together.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic