Skip to content

Commit 71c367c

Browse files
committed
Merge #563 from branch '497-improve-decode-xml-documentation' of github.com:metafacture/metafacture-core
2 parents bdb93ad + 32741b7 commit 71c367c

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

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

+5-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,11 @@
3434
* @author Markus Michael Geipel
3535
*
3636
*/
37-
@Description("A generic xml reader")
37+
@Description("A generic XML reader. Separates XML data in distinct records with the defined record tag name (default: `recordtagname=\"record\"`) " +
38+
"If no matching record tag is found, the output will be empty. " +
39+
"The handler breaks down XML elements with simple string values and optional attributes " +
40+
"into entities with a value subfield (name configurable) and additional subfields for each attribute. " +
41+
"Record tag and value tag names can be configured. Attributes can get an attributeMarker.")
3842
@In(XmlReceiver.class)
3943
@Out(StreamReceiver.class)
4044
@FluxCommand("handle-generic-xml")

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
* @author Christoph Böhme
4848
*
4949
*/
50-
@Description("Encodes a stream as xml")
50+
@Description("Encodes a stream as XML. Defaults: `rootTag=\"records\"`, `recordTag=\"record\"`, no attributeMarker.")
5151
@In(StreamReceiver.class)
5252
@Out(String.class)
5353
@FluxCommand("stream-to-xml")

0 commit comments

Comments
 (0)