from xml.dom.minidom import parse>>> doc = parse('C:\AppServ\www\crossdomain.xml')>>> print doc.toprettyxml()
标记一下,找了好久才找到的