>Now i convert that into a Document node using DomParser.
Sounds like this is a Xerces question rather than a Xalan question. I'd
suggest you repost it in the xerces-j or xerces-c list, as appropriate.
Note that it is very difficult to diagnose this sort of thing without
seeing your code, especially since the exceptions you report aren't ones
that those particular operations are documented as being able to throw...
so either you aren't doing what you say you're doing, or the DOM
implementation you're using is doing something distinctly odd.