POLITECHNIKA RZESZOWSKA - Wydział Elektrotechniki I Informatyki
TransformerFactory transFactory
= TransformerFactory.newlnstance(); Transformer transformer = transFactory.newTransformer();
// utworzony obiekt document
DOMSource source = new DOMSource(document);
File newXML = new File("newXML.xmln) ;
FileOutputStream os = new FileOutputStream(newXML); StreamResult result = new StreamResult(os); transformer.transform(source, result);
JAVA Wykladll Copyright t£> 2012 Jan PROKOP