回答編集履歴
1
コード修正
test
CHANGED
@@ -80,11 +80,11 @@
|
|
80
80
|
|
81
81
|
XPathExpression expr = XPathFactory.newInstance().newXPath().compile(expression);
|
82
82
|
|
83
|
+
NodeList nodeList = (NodeList)expr.evaluate(document, XPathConstants.NODESET);
|
84
|
+
|
83
85
|
|
84
86
|
|
85
87
|
List<String> list = new ArrayList<>();
|
86
|
-
|
87
|
-
NodeList nodeList = (NodeList)expr.evaluate(document, XPathConstants.NODESET);
|
88
88
|
|
89
89
|
for(int i=0; i<nodeList.getLength(); i++) {
|
90
90
|
|