title: Android and XML Parser stax-1.2.0.jar versus using the source
body: <p>I found the source code and jar files for Java StAX <a href="http://stax.codehaus.org/" rel="nofollow noreferrer">here</a>.  The files all have &quot;Copyright 2004 BEA Systems, Inc.&quot; in them.  Bea was bought by Oracle in 2008.</p>
  <p>I put the two jar files in the libs directory and included them in the build path.  But then I get a lengthy error message about using someone else's code and system package names followed by a Dalvik error that basically says I can't use jar files that have Javax.xml.xxxx package names.</p>
  <p>If I instead put the source code into my src directory and refactor all of the javax. directories to something else, it works.</p>
  <p>Would I be violating any copyright laws using the source code and modifying it to work with Android?  What if I modify the code to bring it up to current Java standards and remove unused code?</p>
  <p>Thanks!</p>