(self, name, attrs)
| 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 |