Quoting 守株待兔 <1248283...@qq.com>:
please click the
http://www.secinfo.com/d14qfp.q9j.htm
then ,click  the following:
44: XML IDEA: Condensed Consolidating Statements of Income XML 5.11M (Details)--R158 there is the citigroup's annual financial report --statements of income,xml file.
how can i get a  table of  statements of income  in python ?

Read the document with etree, and either iterate over it or grab the required values with xpath.

from lxml import etree
doc = etree.parse(self.rfile)
result = doc.xpath(self._xpath, namespaces=doc.getroot().nsmap)

--
http://mail.python.org/mailman/listinfo/python-list
  • parse xml 守株待兔
    • Re: parse xml Adam Tauno Williams

Reply via email to