Last active
August 15, 2016 13:20
-
-
Save kurozumi/f46289711c193945ebd26dd82605356f to your computer and use it in GitHub Desktop.
【Python】名前空間付きのxmlファイルを解析(パース)する方法
This file contains 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
from lxml import objectify | |
with open("sample.xml", "r") as f: | |
xml = f.read() | |
root = objectify.fromstring(xml) | |
print(root.title) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment