About 210,000 results
Open links in new tab
  1. python - How can I parse XML and get instances of a particular node ...

    Python has an interface to the expat XML parser. xml.parsers.expat It's a non-validating parser, so bad XML will not be caught. But if you know your file is correct, then this is pretty good, and you'll …

  2. What is the fastest way to parse large XML docs in Python?

    Try to use xml.etree.ElementTree which is implemented 100% in C and which can parse XML without any callbacks to python code. After the document has been parsed, you can filter it to get what you …

  3. What is a good XML stream parser for Python? - Stack Overflow

    Another option is using xml.sax. The official manual is too formal to me, and lacks examples so it needs clarification along with the question. Default parser module, xml.sax.expatreader, implement …

  4. Parsing XML in Python using ElementTree example

    Nov 24, 2009 · I'm having a hard time finding a good, basic example of how to parse XML in python using Element Tree. From what I can find, this appears to be the easiest library to use for parsing …

  5. Парсинг XML на python - Stack Overflow на русском

    Вопрос следующий нужен парсинг XML файла, необходимо вытащить поочередно определенные теги, например тег name Код следующий, не работающий import xml.etree.ElementTree as ET …

  6. python - Which XML library for what purposes? - Stack Overflow

    Nov 8, 2014 · 8 A search for "python" and "xml" returns a variety of libraries for combining the two. This list probably faulty: xml.dom xml.etree xml.sax xml.parsers.expat PyXML beautifulsoup? …

  7. python - How to convert an XML file to nice pandas dataframe? - Stack ...

    Feb 1, 2015 · 61 You can easily use xml (from the Python standard library) to convert to a pandas.DataFrame. Here's what I would do (when reading from a file replace xml_data with the …

  8. Parsing XML using Python ElementTree - Stack Overflow

    Nov 14, 2017 · Parsing XML using Python ElementTree Asked 8 years, 1 month ago Modified 8 years, 1 month ago Viewed 38k times

  9. Converting XML to JSON using Python? - Stack Overflow

    Oct 10, 2008 · That being said, Python's standard library has several modules for parsing XML (including DOM, SAX, and ElementTree). As of Python 2.6, support for converting Python data …

  10. Fastest way to parse XML in Python - Stack Overflow

    Aug 12, 2015 · 19 If parsing speed is a key factor for you, consider using cElementTree or lxml. There are definitely more options out there, see these threads: What is the fastest way to parse large XML …