/metafacture-xml-plugin

Extensions for the standard XML Module in Metafacture.

Primary LanguageJava

metafacture-xml-plugin

A plugin for metafacture that extends the standard XML module.

Build

metafacture xml plugin
gradlew test fatJar

Produces metafacture-xml-VERSION-plugin.jar in build/libs .

Place the build JAR inside the plugins directory of your metafacture-core distribution.

Command Reference

Command In Out

split-sax

XmlReceiver

XmlReceiver

stream-to-sax

StreamReceiver

XmlReceiver

split-sax

Description

Yields a new document for each child element underneath the document root.

Syntax

split-sax

Example

Flux:

> | decode-xml | split-sax | ...

stream-to-sax

Description

Converts metafacture records into XML events. Each record starts a new document.

A shortcut for …​ | stream-to-xml | decode-xml | …​ .

Syntax

stream-to-sax

Example

Flux:

... | stream-to-sax | ...