java 解析XML文件
程序员文章站
2022-04-13 19:41:20
...
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); DocumentBuilder builder = factory.newDocumentBuilder(); Document document = builder.parse(inputStream); Element element = document.getDocumentElement(); NodeList dataNodes = ((Element)element.getElementsByTagName("Application").item(0)).getChildNodes(); for(int i = 0; i1.7 baidu.com sohu.com
上一篇: Android手机号验证正则
下一篇: Java中的private修饰符失效了