文件名称:黑马程序员
文件大小:379B
文件格式:PROJECT
更新时间:2022-01-30 09:16:07
java
java的 private static void addSex() throws Exception{ DocumentBuilderFactory buiderFactory = DocumentBuilderFactory.newInstance(); DocumentBuilder buider = buiderFactory.newDocumentBuilder(); Document document = buider.parse("src/person.xml"); NodeList list = document.getElementsByTagName("p1"); Node p1 = list.item(0);