refactor(性能测试): 处理jmx使用原始的方式删除dom

This commit is contained in:
CaptainB 2022-02-11 14:05:26 +08:00 committed by 刘瑞斌
parent e63fd6b1e3
commit 2e86fdc46b
1 changed files with 4 additions and 1 deletions

View File

@ -1127,6 +1127,9 @@ public class JmeterDocumentParser implements EngineSourceParser {
}
private void removeChildren(Element node) {
node.setText("");
List<Element> elements = node.elements();
for (Element ele : elements) {
node.remove(ele);
}
}
}