title: How can I use the AWS Glue XML classifier?
body: <p>I am trying to use an AWS Glue classifier to discover the schema for a set of XML files. I have the file stored in an s3 bucket like so:</p>
  
  <pre><code>s3://bucket/name_of_dataset/dataset.xml
  </code></pre>
  
  <p>There is only one xml file per dataset, so no partitioning. I routinely pull these into spark using spark-xml by simply specifying the rowtag. However, when I try to do something similar in AWS glue by using an <a href="https://docs.aws.amazon.com/glue/latest/dg/custom-classifier.html#custom-classifier-xml" rel="nofollow noreferrer">XML classifier</a>, the dataset ends up in the Glue Catalog as "unknown" classification. One dataset shows up (each xml dataset has a different schema), but the schema seems to "discover" a nested rowtag and not the rowtag I specified. </p>
  
  <p>To be more concrete, if I store this file at <code>s3://mybucket/experiment/experiment.xml</code>, what should I specify as the rowtag (which appears to be the only argument)? Is there a better place to go for support?</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;EXPERIMENT_SET&gt;
    &lt;EXPERIMENT xmlns="" alias="GSM1627835" accession="SRX913316" center_name="GEO"&gt;
      &lt;IDENTIFIERS&gt;
        &lt;PRIMARY_ID&gt;SRX913316&lt;/PRIMARY_ID&gt;
        &lt;SUBMITTER_ID namespace="GEO"&gt;GSM1627835&lt;/SUBMITTER_ID&gt;
      &lt;/IDENTIFIERS&gt;
      &lt;TITLE&gt;GSM1627835: Human_normal_blsatoyst_MethylC-seq_1; Homo sapiens; Bisulfite-Seq&lt;/TITLE&gt;
      &lt;STUDY_REF accession="SRP064113"&gt;
        &lt;IDENTIFIERS&gt;
          &lt;PRIMARY_ID&gt;SRP064113&lt;/PRIMARY_ID&gt;
          &lt;EXTERNAL_ID namespace="BioProject"&gt;PRJNA296788&lt;/EXTERNAL_ID&gt;
        &lt;/IDENTIFIERS&gt;
      &lt;/STUDY_REF&gt;
      &lt;DESIGN&gt;
        &lt;DESIGN_DESCRIPTION/&gt;
        &lt;SAMPLE_DESCRIPTOR accession="SRS868521"&gt;
          &lt;IDENTIFIERS&gt;
  ...
  </code></pre>
  
  <p>Thanks in advance.</p>