关于DOMSource()构造方法参数的问题
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