Kirsten Barber wrote:
> I have a Java class that manipulates the XMLDocument that I am using in a
> series of Java servlets.  Below is a part of the code, specifically the
> method that is throwing the nullpointer exception.  I have taken out some
> comments, but I have already verified that the variable "mainDoc" is not
> null when I am calling the .normalize() method.  
> It looks to me like
> normalize is calling several functions and one of them is throwing the null
> pointer exception.  So logically, the error would have to be in the
> Document, but my document parses using both XSelerator and XMLSpy.

Xerces does load the document you mention without any error. I actually
modified dom.Writer sample to add normalize() call on the document after
it is parsed (line 516) and there is no NPE.

Where do you get your document?
How do you load it? What features you turn on during loading?

Thanks,
-- 
Elena Litani / IBM Toronto

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to