Slimming an xml

StefC

New Member
I've a program producing one big xml every day and I want to save space, and there are some information that are not usefull after some time. I want to remove this information, for example my xml is now:\[code\]<owner name="thename"> <datasets ndatasets="10" size="10000"> <dataset size="100" creationdate="...">mydataset1</dataset> <dataset size="200" creationdate="...">mydataset2</dataset> ... </datasets></owner><owner name="thename2"> ...</owner>\[/code\]I want to remove the information on the single datasets, so I want to tranform it in:\[code\]<owner name="thename"> <datasets ndatasets="10" size="10000" /></owner><owner name="thename2"> ...</owner>\[/code\]What is the easiest way to do it? I'm using python, but also other easy and portable solutions are welcome
 
Back
Top