Lines Matching full:country
86 <country name="Liechtenstein">
92 </country>
93 <country name="Singapore">
98 </country>
99 <country name="Panama">
105 </country>
134 country {'name': 'Liechtenstein'}
135 country {'name': 'Singapore'}
136 country {'name': 'Panama'}
164 >>> for country in root.findall('country'):
165 ... rank = country.find('rank').text
166 ... name = country.get('name')
187 Let's say we want to add one to each country's rank, and add an ``updated``
203 <country name="Liechtenstein">
209 </country>
210 <country name="Singapore">
215 </country>
216 <country name="Panama">
222 </country>
228 >>> for country in root.findall('country'):
229 ... rank = int(country.find('rank').text)
231 ... root.remove(country)
241 <country name="Liechtenstein">
247 </country>
248 <country name="Singapore">
253 </country>
366 # All 'neighbor' grand-children of 'country' children of the top-level
368 root.findall("./country/neighbor")