XML Compatible Column Names

Adapts the set of column names to make them XML compatible.

According w3schools.com:

Element names are case-sensitive
Element names must start with a letter or underscore
Element names cannot start with the letters xml (or XML, or Xml, etc)
Element names can contain letters, digits, hyphens, underscores, and periods
Element names cannot contain spaces

This component replaces all spaces with underscores.
All characters other than letters, digits, hyphens, underscores and periods are replaced with period.

If it begins XML or something other than a letter or underscore, an underscore is appended as a prefix

This is a total rework of my original XML Compatible Column Names component which merely replaced spaces with underscores and made upper case for the purposes of demonstrating the KNIME XML facilities.

Input Ports

Icon
Table data with columns to be replaced

Output Ports

Icon
Table data from input with replaced column names

Nodes

Extensions

Links