views:

14

answers:

0

I am using following code for storing edited data As :

DOMSource source = new DOMSource(doc); StreamResult result = new StreamResult(new FileOutputStream(outputURL)); TransformerFactory transFactory = TransformerFactory.newInstance(); Transformer transformer = transFactory.newTransformer(); transformer.transform(source, result);

I am getting Null pointer exception after execution & complete file is becoming blank. Exception at "transformer.transform(source, result);" line.

Please help.

Thanks.