解析XML

SAXReader saxReader = new SAXReader();
  StringReader reader2 = new StringReader(outXml);
  Document doc2 = null;
  try {
doc2 = saxReader.read(reader2);
  } catch (DocumentException e) {
// TODO Auto-generated catch block
e.printStackTrace();
  }
retFlag = getElementValue               (doc2,"/ContractRoot/TcpCont/Response/RspCode");

你可能感兴趣的:(xml)