Skip to content

Commit 2e0a4c6

Browse files
committed
Revert default value tag in simpleXmlEncoder (#379)
This sets the default value tag in the encoder to its former behaviour. Reverts one change from: d6e68ff
1 parent f048c33 commit 2e0a4c6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

metafacture-xml/src/main/java/org/metafacture/xml/SimpleXmlEncoder.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
public final class SimpleXmlEncoder extends DefaultStreamPipe<ObjectReceiver<String>> {
5454

5555
public static final String ATTRIBUTE_MARKER = "~";
56+
public static final String DEFAULT_VALUE_TAG = "";
5657

5758
private static final String NEW_LINE = "\n";
5859
private static final String INDENT = "\t";
@@ -73,7 +74,7 @@ public final class SimpleXmlEncoder extends DefaultStreamPipe<ObjectReceiver<Str
7374
private String attributeMarker = ATTRIBUTE_MARKER;
7475
private String rootTag = DefaultXmlPipe.DEFAULT_ROOT_TAG;
7576
private String recordTag = DefaultXmlPipe.DEFAULT_RECORD_TAG;
76-
private String valueTag = DefaultXmlPipe.DEFAULT_VALUE_TAG;
77+
private String valueTag = DEFAULT_VALUE_TAG;
7778
private Map<String, String> namespaces = new HashMap<String, String>();
7879
private boolean writeRootTag = true;
7980
private boolean writeXmlHeader = true;

0 commit comments

Comments
 (0)