python有三种方法解析XML,SAX,DOM,以及ElementTree:配置文件book.xml:1.使用DOM来解析xml文件:2.使用SAX解析xml文件:3.使用ElementTree解析xml文件: