Workflow to demonstrate reading an XML file WITHOUT using the XML Reader or XPath Nodes.
This workflow uses my XML Easy Reader component that is backed by a python script and uses cElementTree to read the XML file, and then generate a KNIME table from it. The only configuration required is to tell it what part of the XML file to look at.
Additionally further configuration can be performed by supplying a "column mapping" file, to enable you to restrict the columns to be output, and change their names. The basic file can first be generated by XML Easy Reader by processing the XML file, so you don't waste time and effort having to write it from scratch!
Please note all components on this demo workflow have been "unlinked" so that the demo can be loaded quickly without a large number of component updates which would take time.
This demo workflow is using the following components:
XML Easy Reader 1
(v1.08, 7 June 2021)
Open File or Folder
Both of these components are available on the hub at
https://hub.knime.com/takbb/spaces/Public/latest/Components
30th May 2021 @takbb Brian Bates
Updated 10 Sep 2021
Workflow
XML Easy Reader demo
External resources
Used extensions & nodes
Created with KNIME Analytics Platform version 4.5.0
Legal
By using or downloading the workflow, you agree to our terms and conditions.