def __init__(self):
handler.ContentHandler.__init__(self)
self.stack = []
self.root = None
self.inElement = 0
self.inComplexType = 0
self.inNonanonymousComplexType = 0
self.inSequence = 0
self.inChoice = 1
self.inAttribute = 0
self.inAttributeGroup = 0
self.inSimpleType = 0
self.inUnionType = 0
self.inAppInfo = 0
# The last attribute we processed.
self.lastAttribute = None
# Simple types that exist in the global context and may be used to
# qualify the type of many elements and/or attributes.
self.topLevelSimpleTypes = list()
# The current choices we have available indexed by their level in the
# tree.
self.currentChoices = dict()
## self.dbgcount = 1
## self.dbgnames = []
评论列表
文章目录