search

Home  >  Q&A  >  body text

使用python的sax方式,如何解析xml下面的多级节点

阿神阿神2872 days ago690

reply all(1)I'll reply

  • PHP中文网

    PHP中文网2017-04-18 10:09:41

    Add a tag stack in MovieHandler, the content is "tag from top to current node", use startElement and endElement to maintain this stack.

    Then use the stack in characters to determine, for example, when the stack is equal to ['IdList', 'Id'], print

    reply
    0
  • Cancelreply