Re: [XML-SIG] element-value in multiple namespace

2008-11-30 Thread Mark Tolonen
"Christian Benke" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hello! I'm currently struggling to extract some information from a gpx-file (geodata in xml-format). You can see the xml-content here: http://benko.login.cx/2008-11-21.xml So far i've managed to get out most of the

Re: [XML-SIG] element-value in multiple namespace

2008-11-30 Thread Christian Benke
On Sun, 30 Nov 2008 21:24:53 +0100 Stefan Behnel <[EMAIL PROTECTED]> wrote: > > tree = etree.parse(gpxfile) > > gpx_namespace = "http://www.topografix.com/GPX/1/1"; > > root = tree.getroot() > > trackSegments = root.getiterator("{%s}trkseg"%gpx_namespace) > > for trackSegment in tr

Re: [XML-SIG] element-value in multiple namespace

2008-11-30 Thread Stefan Behnel
Hi, Christian Benke wrote: > I'm currently struggling to extract some information from a gpx-file > (geodata in xml-format). You can see the xml-content here: > http://benko.login.cx/2008-11-21.xml > > So far i've managed to get out most of the values with this function: > > tree = etree.parse(g