TransformerFactory tff = TransformerFactory.newInstance(); Transformer tf = tff.newTransformer(); tf.transform(new DOMSource(document),new StreamResult(new File("books1.xml")));
我的这段代码在DOMSource()有错误,document cannot be resolved to a variable
有完整的代码么~~这里看不出来·~