Skip to content
v2.274.0

XMLClassifierProperty Struct ​

A classifier for XML content.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_glue as glue } from 'aws-cdk-lib';
const xMLClassifierProperty: glue.CfnClassifier.XMLClassifierProperty = {
  classification: 'classification',
  rowTag: 'rowTag',

  // the properties below are optional
  name: 'name',
};

Properties ​

classificationstringclassificationstrclassificationStringClassificationstringClassification*stringrequired#
An identifier of the data format that the classifier matches.
namestringnamestrnameStringNamestringName*string#
The name of the classifier.
rowTagstringrow_tagstrrowTagStringRowTagstringRowTag*stringrequired#
The XML tag designating the element that contains each record in an XML document being parsed.
notes

This can't identify a self-closing element (closed by /> ). An empty row element that contains only attributes can be parsed as long as it ends with a closing tag (for example, <row item_a="A" item_b="B"></row> is okay, but <row item_a="A" item_b="B" /> is not).