Issues with reading and wirting an XML file in Java
===

Am using DocumentBuilderFactory to read an XML file and write the same file with different file name. Here's my code : 

                DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
    			DocumentBuilder db = dbf.newDocumentBuilder();
    			Document dom = db.parse(new InputSource("internal.xml"));
    
                TransformerFactory transformerFactory = TransformerFactory.newInstance();
    			Transformer transformer = transformerFactory.newTransformer();
    			DOMSource source = new DOMSource(dom);
    			StreamResult result = new StreamResult(new File("newInternal.xml"));
    			transformer.transform(source, result);
    			System.out.println("File Saved!!!");

But am experiencing error in 'newInternal.xml' file. It's saving with '&lt' , '&gt' in the new file. May I know the issue with the above code ?