title: Can't run XML parser Jackson on Android
body: <p>Can't run XML parser Jackson on Android</p>
  
  <pre><code> import android.content.Context;
  
  import com.fasterxml.jackson.databind.ObjectMapper;
  import com.fasterxml.jackson.dataformat.xml.XmlMapper;
  import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
  import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
  
  import org.jsoup.Jsoup;
  import org.jsoup.nodes.Document;
  
  import java.io.IOException;
  import java.net.URISyntaxException;
  import java.util.List;
  
  
  
  
  in onCreate(){
      ObjectMapper xmlMapper = new XmlMapper();
              Channel root = xmlMapper.readValue(stringXML, Channel.class);
  }
  
  
  
  @JacksonXmlRootElement(localName = "channel")
      public static class Channel {
          public List&lt;Item&gt; channel;
      }
  
      public static class Item {
          @JacksonXmlProperty(localName = "item")
          public String item;
      }
  </code></pre>
  
  <p>Error is :</p>
  
  <pre><code>java.lang.NoClassDefFoundError: Failed resolution of: Ljavax/xml/stream/XMLInputFactory;
   Caused by: java.lang.ClassNotFoundException: Didn't find class "javax.xml.stream.XMLInputFactory" on path: DexPathList
  </code></pre>