title: XMLStreamException: ParseError at [row,col]:[1,1] ; only whitespace content allowed before start tag and not [
body: <p>I've been trying and searching but can't seem to find a solution. I have this xml content: </p>
  
  <pre><code>&lt;ArrayOfstring xmlns:i="http://www.w3.org/2001/XMLSchema-instance" 
      xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays"&gt;
      &lt;string&gt;C201711241121.png&lt;/string&gt;
      &lt;string&gt;G201711241121.png&lt;/string&gt;
      &lt;string&gt;I201711241121.png&lt;/string&gt;
      &lt;string&gt;I201711241121.png&lt;/string&gt;
   &lt;/ArrayOfstring&gt;
  </code></pre>
  
  <p>provided by a link.
  I've added the INTERNET permission in Android Manifest: </p>
  
  <pre><code>&lt;uses-permission  android:name="android.permission.INTERNET"/&gt;
  </code></pre>
  
  <p>The class for the data I tried to implement:</p>
  
  <pre><code>@Root
  @NamespaceList({
          @Namespace(reference="http://www.w3.org/2001/XMLSchema-instance", prefix="i"),
          @Namespace(reference="http://schemas.microsoft.com/2003/10/Serialization/Arrays")
  })
  public class ArrayOfstring {
  
      @ElementList
      private List&lt;String&gt; string;
  
      public void setString(List&lt;String&gt; string) {
          this.string = string;
      }
  
      public List&lt;String&gt; getString(){
          return string;
      }
  
  }
  </code></pre>
  
  <p>The interface for Retrofit:</p>
  
  <pre><code>public interface WebAPI {
      @GET("api/values")
      Call&lt;ArrayOfstring&gt; loadArrayOfstring();
  
  }
  </code></pre>
  
  <p>The class with callbacks:</p>
  
  <pre><code>public class Controller implements Callback&lt;ArrayOfstring&gt; {
  
      static final String BASE_URL = "http://xx.xxx.xxx.xx:xxxx/";
  
      public void start() {
          Retrofit retrofit = new Retrofit.Builder().baseUrl(BASE_URL)
                  .addConverterFactory(SimpleXmlConverterFactory.create()).build();
  
          WebAPI vogellaAPI = retrofit.create(WebAPI.class);
  
          Call&lt;ArrayOfstring&gt; call = vogellaAPI.loadArrayOfstring();
          call.enqueue(this);
      }
  
      @Override
      public void onResponse(Call&lt;ArrayOfstring&gt; call, Response&lt;ArrayOfstring&gt; response) {
          if (response.isSuccessful()) {
              ArrayOfstring resp = response.body();
              if (resp == null){
                  Log.v("resp","is null");
                  return;
              }
             // System.out.println("Channel title: " + rss.getChannelTitle());
              Log.v("response",resp.getString().size()+" size");
              for (String str: resp.getString()){
                  Log.v("response", str+" string");
              }
          } else {
              //System.out.println(response.errorBody());
              Log.v("response", "error "+response.code());
          }
      }
  
      @Override
      public void onFailure(Call&lt;ArrayOfstring&gt; call, Throwable t) {
          t.printStackTrace();
      }
  </code></pre>
  
  <p>And I start the Controller so that the get request would begin in my activity, like this:</p>
  
  <pre><code>Controller ctrl = new Controller();
  ctrl.start();
  </code></pre>
  
  <p>But the only result there seems to be </p>
  
  <pre><code>W/System.err: java.lang.RuntimeException: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,1]
  W/System.err: Message: only whitespace content allowed before start tag and not [
  </code></pre>
  
  <p>The link formed should be <a href="http://xx.xxx.xxx.xx:xxxx/api/values/" rel="nofollow noreferrer">http://xx.xxx.xxx.xx:xxxx/api/values/</a></p>