Skip to content
v2.278.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',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_glue as glue

x_ml_classifier_property = glue.CfnClassifier.XMLClassifierProperty(
    classification="classification",
    row_tag="rowTag",

    # the properties below are optional
    name="name"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.glue.*;

XMLClassifierProperty xMLClassifierProperty = XMLClassifierProperty.builder()
        .classification("classification")
        .rowTag("rowTag")

        // the properties below are optional
        .name("name")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Glue;

var xMLClassifierProperty = new XMLClassifierProperty {
    Classification = "classification",
    RowTag = "rowTag",

    // the properties below are optional
    Name = "name"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

xMLClassifierProperty := &XMLClassifierProperty{
	Classification: jsii.String("classification"),
	RowTag: jsii.String("rowTag"),

	// the properties below are optional
	Name: jsii.String("name"),
}

Properties ​

classificationstringclassificationstrclassificationStringClassificationstringClassification*string required #
An identifier of the data format that the classifier matches.
nameoptionalstringnameoptionalstrnameoptionalStringNameoptionalstringNameoptional*string #
The name of the classifier.
rowTagstringrow_tagstrrowTagStringRowTagstringRowTag*string required #
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).