MCPcopy Create free account
hub / github.com/ronreiter/interactive-tutorials / mapPrefix

Method mapPrefix

suds/sax/parser.py:62–72  ·  view source on GitHub ↗
(self, node, attribute)

Source from the content-addressed store, hash-verified

60 self.push(node)
61
62 def mapPrefix(self, node, attribute):
63 skip = False
64 if attribute.name == 'xmlns':
65 if len(attribute.value):
66 node.expns = unicode(attribute.value)
67 skip = True
68 elif attribute.prefix == 'xmlns':
69 prefix = attribute.name
70 node.nsprefixes[prefix] = unicode(attribute.value)
71 skip = True
72 return skip
73
74 def endElement(self, name):
75 name = unicode(name)

Callers 1

startElementMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected