Hub
Pricing About
NodeNode / Manipulator

XML to JSON

Structured DataJSONStreamable
Drag & drop
Like

Reads values from an XML column and converts them into JSON format.

  • If there are multiple pieces of text around inner elements, they are translated into elements of a JSON array.
  • Text content inside XML elements is stored under a specified key (default key is text ).
  • If enabled, XML attributes are converted to JSON keys with an @ prefix.
  • If enabled, XML processing instructions are converted to JSON keys with a ? prefix.
Example :

The XML
                <a>Hello <b>world</b>!</a>
            
becomes:
                {
   "a": [
     "Hello ",
     {
       "b": {
         "text": "world"
       }
     },
     "!"
   ]
}
            

Node details

Input ports
  1. Type: Table
    table with XML
    Table with an XML column.
Output ports
  1. Type: Table
    table with JSON
    Table containing the converted JSON column.

Extension

The XML to JSON node is part of this extension:

  1. Go to item

Related workflows & nodes

KNIME
Open for Innovation

KNIME AG
Talacker 50
8001 Zurich, Switzerland
  • Software
  • Getting started
  • Documentation
  • Courses + Certification
  • Solutions
  • KNIME Hub
  • KNIME Forum
  • Blog
  • Events
  • Partner
  • Developers
  • KNIME Home
  • Careers
  • Contact us
Download KNIME Analytics Platform Read more about KNIME Business Hub
© 2026 KNIME AG. All rights reserved.
  • Trademarks
  • Imprint
  • Privacy
  • Terms & Conditions
  • Data Processing Agreement
  • Credits