After parsing the documengt I am getting null, even though the document contains data. Here is my code, I have set all validations to false.
DocumentBuilderF
you should add the static modifier to your Document object, I had the same problem and after the parsing action all non-static objects were simply referring to null. Making it static somehow forces java to keep the reference to the created object during the parse action in your variable.
[#document: null]
is just the toString of your doc
instance, it doesn't output your whole XML document.
The instance itself is not null, you can probably continue your processing without a problem.