title: Android Studio DatatypeFactoryImpl not found
body: <p>I try to generate an XML file with android studio and i get this error:</p>
  
  <pre><code> Caused by: javax.xml.datatype.DatatypeConfigurationException: Provider org.apache.xerces.jaxp.datatype.DatatypeFactoryImpl not found.
  </code></pre>
  
  <p>The problem come from the "JAXBContext" line.
  I have a fonction which make XML file its code is</p>
  
  <pre><code>        try {
  
          File file = new File("D:\\Github\\Comedu\\file.xml");
          JAXBContext jaxbContext = JAXBContext.newInstance(Resultat.class);
          Marshaller jaxbMarshaller = jaxbContext.createMarshaller();
  
          // output pretty printed
          jaxbMarshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);
  
          jaxbMarshaller.marshal(this, file);
          jaxbMarshaller.marshal(this, System.out);
  
      } catch (JAXBException e) {
          e.printStackTrace();
      }
  </code></pre>
  
  <p>On android studio i add the xerces package to my buildpath, so i don't know how to resolve this.</p>