title: Hide autogenerated content of XML annotations in Springfox Api-docs
body: <p>I am writing a Gradle project with Springfox-swagger-ui 3.0.0 to present nice swagger UI with Api documentation.</p>
  <pre><code>compileOnly &quot;io.springfox:springfox-swagger-ui:3.0.0&quot;
  </code></pre>
  <p>One of api endpoints returns a POJO class, that is an auto-generated class from .xsd schema using XJC task.</p>
  <p>What I'd like to do is to prevent Swagger from including auto-generated Xml-annotations</p>
  <p>Example POJO class (generated from xsd schema):</p>
  <pre><code>@Getter
  public class TestPojo {
      @XmlElement(required = true)
      protected String machineSerialNumber;
  }
  </code></pre>
  <p>Generated api-docs:</p>
  <pre><code>&quot;TestPojo&quot;: {
    &quot;type&quot;: &quot;object&quot;,
    &quot;title&quot;: &quot;TestPojo&quot;,
    &quot;properties&quot;: {
       &quot;machineSerialNumber&quot;: {
         &quot;type&quot;: &quot;string&quot;,
         &quot;xml&quot;: {
            &quot;name&quot;: &quot;machineSerialNumber&quot;,
            &quot;attribute&quot;: false,
            &quot;wrapped&quot;: false
         }
       }
    }
  }
  </code></pre>
  <p><a href="https://i.stack.imgur.com/AczwH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/AczwH.png" alt="Screen from swagger UI" /></a></p>
  <p>What I'd like to achieve, is to not present these xml-annotations, so that api-docs content will look like this:</p>
  <pre><code>&quot;TestPojo&quot;: {
   &quot;type&quot;: &quot;object&quot;,
   &quot;properties&quot;: {
     &quot;machineSerialNumber&quot;: {
       &quot;type&quot;: &quot;string&quot;
     }
   },
  &quot;title&quot;: &quot;TestPojo&quot;
  }
  </code></pre>
  <p>And swagger-ui model:</p>
  <p><a href="https://i.stack.imgur.com/P3qPT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/P3qPT.png" alt="desired swagger-ui" /></a></p>
  <p>The problem here is that I cannot change the content of auto-generated classes to remove these annotations.
  Is there a way to configure Swagger in a way so that it skips these annotations?</p>