MCPcopy Create free account
hub / github.com/c0ny1/captcha-killer / getRoot

Method getRoot

src/test/java/matcher/impl/XmlMatcherTest.java:30–40  ·  view source on GitHub ↗
(String strXml)

Source from the content-addressed store, hash-verified

28 }
29
30 public static Element getRoot(String strXml){
31 SAXReader sax = new SAXReader();
32 Element root = null;
33 try {
34 Document document = sax.read(new ByteArrayInputStream(strXml.getBytes()));
35 root = document.getRootElement();// 获取根节点
36 }catch (Exception e){
37 e.printStackTrace();
38 }
39 return root;
40 }
41}

Callers 2

matchMethod · 0.95
buildKeywordMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected