Tag Info

Hot answers tagged

2

With ElementTree, the solution is (urllib is deprecated, use urllib2 or better, the Requests module): import urllib2 WMTS = urllib2.urlopen("http://basemap.nationalmap.gov/arcgis/rest/services/USGSTopo/MapServer/WMTS/1.0.0/WMTSCapabilities.xml") tree = et.parse(WMTS) for elem in tree.iter(tag='{http://www.opengis.net/wmts/1.0}ScaleDenominator'): print ...



Only top voted, non community-wiki answers of a minimum length are eligible