回答編集履歴

1

コード修正

2021/12/30 18:06

投稿

jimbe
jimbe

スコア13209

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