java - How to update large XML file -
rather rewriting entire contents of xml file when single element updated, there better alternative updating file?
i recommend using vtd-xml http://vtd-xml.sourceforge.net/
from faq ( http://vtd-xml.sourceforge.net/faq.html ):
why should use vtd-xml large xml files?
for numerous reasons summarized below:
- performance: performance of vtd-xml far better sax
- ease use: random access combined xpath makes application easy write
- better maintainability: app code shorter , simpler understand.
- incremental update: occasional, small changes become efficient.
- indexing: pre-parsed form of xml further boost processing performance.
- other features: cut, paste, split , assemble xml documents possible vtd-xml.
in order take advantage of vtd-xml, recommended developers split ultra large xml documents smaller, more manageable chucks (<2gb).
Comments
Post a Comment