0 ×

XML To JSON

StreamableJSON related functionality for KNIME version 4.2.1.v202008251158 by KNIME AG, Zurich, Switzerland

Converts XML values to JSON values.

Attributes are translated with prefix @, processing instructions with ? prefix to their name as a key in a JSON object.

When there are multiple texts surrounding inner elements, those are translated as JSON array elements instead of an object with the specified key.

Example:<a b="2"><v>some text</v></a> gets translated to:{"a": {"@b": "2", "v": {"#text": "some text"} } }

Options

Input column
Column containing XML values
Replace input column
Replace input column, keep its name
Append new column
Name of the new (JSON) column
Text body translated to JSON with key
This key will be used for XML text content to be represented in JSON
Translate comments
When checked, comments (such as <-- comment -->) will be translated with key: #comment, otherwise they are omitted in the JSON output
Translate processing instructions
When checked, processing instructions (such as <?do?>) will be translated with prefix ?, otherwise they are omitted in the JSON output

Input Ports

Icon
Table with an XML column.

Output Ports

Icon
Table containing the converted JSON column.

Best Friends (Incoming)

Best Friends (Outgoing)

Workflows

Installation

To use this node in KNIME, install KNIME JSON-Processing from the following update site:

KNIME 4.2

A zipped version of the software site can be downloaded here.

You don't know what to do with this link? Read our NodePit Product and Node Installation Guide that explains you in detail how to install nodes to your KNIME Analytics Platform.

Wait a sec! You want to explore and install nodes even faster? We highly recommend our NodePit for KNIME extension for your KNIME Analytics Platform. Browse NodePit from within KNIME, install nodes with just one click and share your workflows with NodePit Space.

Developers

You want to see the source code for this node? Click the following button and we’ll use our super-powers to find it for you.