read in xml instance and submit

Posted by JohnBampton on
URL: https://discuss.orbeon.com/read-in-xml-instance-and-submit-tp1471121.html

I am reading in the xml instance and I have no trouble getting individual element values from it.

Document queryDocument = xmlReader.read(request.getInputStream())

But I want to submit the whole document into a database and when I try to insert the querydocument document all the gets inserted is a string something like - "org.dom4j.defaultdocument"  instead of the actual xml

Does anyone know how to do this?