# HG changeset patch # User Robert Casties # Date 1565284409 -7200 # Node ID 484be3266e540da400185f362218f2cbfb937245 # Parent 8013b12cecf7aa6d75c3487f846cf65d19910236 omit empty attributes in XML dump. diff -r 8013b12cecf7 -r 484be3266e54 src/main/java/org/mpi/openmind/repository/utils/OM4StreamWriter.java --- a/src/main/java/org/mpi/openmind/repository/utils/OM4StreamWriter.java Wed Jul 17 16:51:16 2019 +0200 +++ b/src/main/java/org/mpi/openmind/repository/utils/OM4StreamWriter.java Thu Aug 08 19:13:29 2019 +0200 @@ -331,6 +331,8 @@ if (entity.getAttributes().size() > 0) { writer.writeStartElement(XMLUtil.ATTRIBUTES); for (Attribute att : entity.getAttributes()) { + // skip empty attributes + if (StringUtils.isEmpty(att.getValue())) continue; // update stats updateAttStats(att, attStats); // write xml