![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据交换
skyhackvip
php+java
展开
-
使用json lib怪事,不知道算不算是json lib的bug
使用JSONArray.fromObject(priceList).toString() 来格式化一个List,自定义对象的list时 提示警告 2009-11-18 15:42:08 net.sf.json.JSONObject _fromBean警告: Property pricesByLid has no read method. SKIPPED2009-11-原创 2009-11-19 18:02:00 · 592 阅读 · 0 评论 -
java使用dom4j解析xml,对比php使用SimpleXMLElement解析xml
java使用dom4j解析xmlxml文件2009-11-25 09:06:11http://xx/initline/detail/1628" time="2009-11-25 09:06:11"/>http://xx/initline/detail/1634" time="2009-11-25 09:06:11"/>原创 2009-11-24 10:34:00 · 1793 阅读 · 0 评论 -
当xml中存在命名空间,使用dom4j解析
SAXReader reader = new SAXReader(); Document doc = reader.read(new ByteArrayInputStream(sbf.toString() .getBytes("UTF-8"))); // 读取 Map map = new HashMap(); map.put("namespace", "http原创 2010-04-02 18:32:00 · 519 阅读 · 0 评论