Hitachi Vantara Pentaho Community Wiki
Skip to end of metadata
Go to start of metadata

Description

This step performs an XSD validation against data in a file or in an input field.
XSD is short for XML Schema Definition.  For more information, see here: http://en.wikipedia.org/wiki/XML_Schema_(W3C)

As such, there are 2 entities at work here:

  1. The XML you want to validate the layout for
  2. The XSD (Schema) file that describes what the XML file should look like.

To make matters more complex, it's possible to store the XSD inside the XML (1) itself.

Options

Option

Description

Step name

Name of the step; this name has to be unique in a single transformation

XML Source

  • XML source is a file : check this if the XML file is defined as a filename in the XML field
  • XML field : the field to read that contains the XML filename or the XML content itself

Output fields

  • Result fieldname : the name of the result field
  • Output String field : check this option if you want to specify specific messages after validation:
    • Display if XML is valid : the message if the XML was valid
    • Display if XML is not valid : the message if the XML wasn't valid
  • Add validation msg in output : check this if you want to add a validation message in the output
  • Validation msg field: the name of the validation message field

XML schema definition

  • XSD source : select one of these options:
    • The XSD source is a file, let me specify the filename (specify below in the XSD filename field)
    • The XSD source is a file, defined in a field (specify below in the XSD filename field)
    • The XSD source is defined inside the source XML
  • No labels