使用python的sax方式,如何解析xml下面的多级节点
阿神
阿神 2017-04-18 10:07:41
0
1
582
阿神
阿神

闭关修行中......

reply all (1)
洪涛

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

    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!