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

Method startElement

suds/sax/parser.py:48–60  ·  view source on GitHub ↗
(self, name, attrs)

Source from the content-addressed store, hash-verified

46 self.nodes = [Document()]
47
48 def startElement(self, name, attrs):
49 top = self.top()
50 node = Element(unicode(name), parent=top)
51 for a in attrs.getNames():
52 n = unicode(a)
53 v = unicode(attrs.getValue(a))
54 attribute = Attribute(n, v)
55 if self.mapPrefix(node, attribute):
56 continue
57 node.append(attribute)
58 node.charbuffer = []
59 top.append(node)
60 self.push(node)
61
62 def mapPrefix(self, node, attribute):
63 skip = False

Callers

nothing calls this directly

Calls 7

topMethod · 0.95
mapPrefixMethod · 0.95
appendMethod · 0.95
pushMethod · 0.95
ElementClass · 0.90
AttributeClass · 0.90
getValueMethod · 0.80

Tested by

no test coverage detected