I am trying to serialize a (org.w3c.dom) Document using the Xerces XMLSerializer class. This Document has been processed utilizing Oracle's DOMParser and, by way of its importNodes() method, has had other nodes brought into it. When I try to serialize the Document, I discover a NullPointerException in the printXMLChar() method.
When I examine the method source, I find only two objects and therefore only two places where the NullPointerException may arise: _printer and _encodingInfo, both of which, as evidenced by the lead underscore, are members of the class (or more precisely, inherited members of the parent class).
It seems to me that there are several possible reasons for this: perhaps an Oracle-specific issue in how it implements the import of "foreign" nodes, something wrong with the OutputFormat object I pass to the XMLSerializer, etc. Could you provide any insights as to these or any other possibilities for this very unsettling NullPointerException?
Thanks very much.
Neil
____________________________
Neil Chaudhuri
Research Fellow
Systems Development & Technology Support
Logistics Management Institute
(571) 633-7786
[EMAIL PROTECTED]
www.lmi.org
