[opencms-dev] Remove nodes from a structured XML file
Petr Chelčický
petr.chelcicky at centrum.cz
Thu Apr 8 09:43:16 CEST 2010
Hi!
I have a structured XML file which contains news items showed on the main page. In order to make this file of a manageable size (there are new news items every day), I want to write a Java class that would archive older news items and leave only 10 latest ones (this class would run as a scheduled task once a day) in the file - by archiving I mean moving into another file of the same structure. Unfortunately, I haven't found appropriate methods in OpenCMS API to do this. Do you have any ideas/samples I could look at?
Thanks a lot in advance,
Peter
More information about the opencms-dev
mailing list