title: accessing eXist db through Java
body: <p>I need to develop an online assessment system for evaluating xqueries. I am trying to use eXist db xml database. I am developing the web app in Java, struts2 and apache tomcat server.
  How can i upload xml schema document and xml instance document using java ? Also i should be able to fire an xquery on the xml document and get the results.</p>