Created
August 2, 2013 13:49
-
-
Save wzpan/6140021 to your computer and use it in GitHub Desktop.
Python - xml parser
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| try: | |
| from lxml import etree | |
| except ImportError: | |
| import xml.etree.ElementTree as etree | |
| tree = lxml.etree.parse('file.xml') | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment