Python 2.7

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
from xml.etree import cElementTree as etree

text = '''
<result>
<Orders>
  <Order id='1'/>
  <Order id='2'/>
</Orders>
</result>
'''

xml = etree.XML(text)
print xml.get('foo')