Python to parse non-standard XML file

前端 未结 3 1962
野趣味
野趣味 2021-01-05 11:24

My input file is actually multiple XML files appending to one file. (It\'s from Google Patents). It has below structure:



        
3条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-05 12:08

    I don't know about minidom, nor much about XML parsing, but I have used XPath to parse XML/HTML. E.g. within the lxml module.

    Here you can find some XPath Examples: http://www.w3schools.com/xpath/xpath_examples.asp

提交回复
热议问题