From e534a541d13d4cdc669f3c1c2f48ab5971805402 Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Wed, 28 Feb 2018 00:47:12 +0100 Subject: [PATCH] Fixed XML export. --- src/fr/devinsy/sikevadb/core/XMLSikevaDB.java | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/fr/devinsy/sikevadb/core/XMLSikevaDB.java b/src/fr/devinsy/sikevadb/core/XMLSikevaDB.java index 3698d8a..428564a 100644 --- a/src/fr/devinsy/sikevadb/core/XMLSikevaDB.java +++ b/src/fr/devinsy/sikevadb/core/XMLSikevaDB.java @@ -289,19 +289,16 @@ public class XMLSikevaDB for (String key : source.getKeys()) { + // + Element root = source.getElement(key); + write(out, root); + // Elements elements = source.getElements(key); for (Element element : elements) { write(out, element); } - - // - for (String subkey : source.getSubkeys(key)) - { - Element subElement = source.getElement(key, subkey); - write(out, subElement); - } } out.writeEndTag("elements");