日期:2014-05-20 浏览次数:20900 次
public class testDom {
/**
* @param args
* @throws IOException
*/
public static void testDom4() throws DocumentException, IOException{
SAXReader saxR = new SAXReader();
Document document = saxR.read("D:/source/CaculatorProcess.bpel");
Element root = document.getRootElement();
Iterator iter1 = root.attributeIterator();
for(;iter1.hasNext();){
Attribute attr = (Attribute)iter1.next();
System.out.println(attr.getName());
}
}
public static void main(String[] args) throws DocumentException, IOException, WSDLException {
// TODO Auto-generated method stub
testDom4();
}
}