title: Can not use class org.json.XML on Android Studio
body: <p>I want to parse a XML String to JSON, I search and know that I can use library <a href="http://mvnrepository.com/artifact/org.json/json" rel="nofollow">java-json</a> to do this. I added dependencies into build.gradle</p>
  
  <pre><code>apply plugin: 'com.android.application'
  
  android {
      compileSdkVersion 23
      buildToolsVersion "23.0.1"
  
      defaultConfig {
          applicationId "com.hnib.docbaoonline"
          minSdkVersion 15
          targetSdkVersion 23
          versionCode 1
          versionName "1.0"
      }
      buildTypes {
          release {
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
          }
      }
  }
  
  dependencies {
      compile fileTree(dir: 'libs', include: ['*.jar'])
      testCompile 'junit:junit:4.12'
      compile 'com.android.support:appcompat-v7:23.0.1'
      compile 'com.android.support:design:23.0.1'
  }
  </code></pre>
  
  <p>What I did :</p>
  
  <pre><code>JSONObject jsonObj = null;
  try {
      jsonObj = XML.toJSONObject(sampleXml);
  } catch (JSONException e) {
      Log.e("JSON exception", e.getMessage());
      e.printStackTrace();
  } 
  </code></pre>
  
  <p>Android Studio notify me that I can not use XML class , I checked and found that I can not import package <strong>org.json.XML</strong> </p>
  
  <pre><code>import org.json.JSONException;
  import org.json.JSONObject;
  import org.json.XML;  // error here
  </code></pre>
  
  <p>I do not know why, I also try by add jar file lib but have the same result.
  Does anybody have the same problem and how to resolve ?</p>