在java中如何通过一个字符串构建一个dom对象
Andy 2002-08-15 09:36:17 DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
DocumentBuilder db = dbf.newDocumentBuilder();
Document doc = db.parse(...);
//此处的parse方法的参数只能是一个文件名,或一个其它文件相关的输入流,但是
不能是一个字符串,记得微软的msxml中的load方法是可以输入一个字符串来构建一个dom对象的,在java中怎么不行呢,望大虾指教?