摘要: python语言解析xml文件的常用的有两种方式: 通过MiniDom库解析xml文件通过ElementTree库解析xml文件 MiniDom方式解析xml xml文件以data.xml为例,具体操作如下: data.xml: <?xml version="1.0" encoding="utf-8"?> <info> <intro>保存用户的信息</intro> <list id='001'> <head>auto_userone</head> < 阅读全文
posted @ 2012-02-18 21:13 小楼 阅读(1393) 评论(1) 推荐(0) 编辑