xml.etree.ElementTree — 操作 XML 的API

优质
小牛编辑
135浏览
2023-12-01
  • Parsing an XML Document
  • Traversing the Parsed Tree
  • Finding Nodes in a Document
  • Parsed Node Attributes
  • Watching Events While Parsing
  • Creating a Custom Tree Builder
  • Parsing Strings
  • Building Documents With Element Nodes
  • Pretty-Printing XML
  • Setting Element Properties
  • Building Trees from Lists of Nodes
  • Serializing XML to a Stream