121212

来源:互联网 发布:mac上文献管理软件 编辑:程序博客网 时间:2024/04/30 04:01
/** * XML解析 * @param detailXML * @return 结果的hashMap形式 * @throws FactoryConfigurationError * @throws Exception */ public static HashMap parseXML(String detailXML) throws FactoryConfigurationError, Exception { ACSSysLogger.debug("Enter Func [xmlParser]"); HashMap xmlmap = new HashMap(); DocumentBuilderFactory dbf = null; try { dbf = DocumentBuilderFactory.newInstance(); } catch (FactoryConfigurationError fce) { ACSSysLogger.error("Error occurred while parse detailParams after authentication!"); fce.toString(); } StringBuffer detailParams = new StringBuffer(1024); detailParams.append(""); detailParams.append(""); detailParams.append(detailXML); detailParams.append(""); try { dbf.setValidating(false); DocumentBuilder docBuilder = dbf.newDocumentBuilder(); ByteArrayInputStream inputStream = new ByteArrayInputStream(detailParams.toString().getBytes("GB2312")); Document doc = docBuilder.parse(inputStream); Element element = doc.getDocumentElement(); NodeList children = element.getChildNodes(); for(int i=0;i
  • 121212
  • 121212
  • 121212
  • 121212
  • 121212
  • 121212
  • 121212
  • 121212
  • Java多线程,交替输出121212
  • 读取文件MD5值 C#
  • 加密解密函数
  • AJAX的小例子
  • SEO - 301永久重定向
  • 安装SQL2008,提示删除SQL2005Express工具的解决方法
  • 121212
  • 【计算几何】【RQNOJ】轰炸
  • SQL 易记又易用的合并方法
  • IIS访问网站的用户过多解决方法
  • JS获取网页宽高方法集合
  • 晶振并接的电容值不对,导致主控的ICE不能连接
  • 挂载ROOTFS时出现:kernel panic: not syncing attempted to kill init 错误信息
  • 胡萝卜与白萝卜(不懂的人不要看)
  • 根据浏览器的大小,自动调整Silverlight的大小
  • 原创粉丝点击