Commits

Jason Pellerin committed fcfb4b3

Fixed xpath expr

  • Participants
  • Parent commits aac2283

Comments (0)

Files changed (1)

File scio/client.py

         if type_nodes:
             return type_nodes[0]
         # could also be element -> type reference
-        elem_refs = self.wsdl.findall(
-            ".//{%s}element[@name='%s']/@type" % (NS_XSD, name))
+        elem_refs = filter(None, [
+            t.get('type')
+            for t in self.wsdl.findall(
+                ".//{%s}element[@name='%s']" % (NS_XSD, name))])
         if elem_refs:
             type_name = elem_refs[0]
             return self._find_type(type_name)