I'm not familiar with that product, but I notice that you're passing a Reader to the parser. That means that the parser won't have a system ID for the input document (i.e. it won't know where it is).
And if your method of importing involves a relative URL then the parser won't know what it's relative to, and won't be able to find the imported document.
The usual way to deal with this in JAXP is to pass a File to the parser, or a URL, or something which enables the parser to locate the document. Perhaps you could do that with this parser too. (That would also fix any problems you might have caused by using a Reader with a charset different from the document's encoding.)
Joined: Jul 07, 2009
I got the solution.
I passed the url of the file and now this api is able to find out imported documents.
Thanks a lot, you saved my day