<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def startElement(self, name, attrs):
 """ Initialize new node and store current node into stack. """

        self.stack.append((self.current, self.chardata))
        self.current = {}
        self.chardata = []