def fromDom(self, node):
self.setAttributes(node)<EOL>contents = self.getContents(node)<EOL>for i in contents:<EOL><INDENT>component = SplitQName(i.getTagName())[<NUM_LIT:1>]<EOL>if component == '<STR_LIT>' and not self.annotation:<EOL><INDENT>self.annotation = Annotation(self)<EOL>self.annotation.fromDom(i)<EOL><DEDENT>elif component == '<STR_LIT>':<EOL><INDENT>self.content = AnonymousSimpleType(self)<EOL>self.content.fromDom(i)<EOL><DEDENT>else:<EOL><INDENT>raise SchemaError('<STR_LIT>' %(i.getTagName()))<EOL><DEDENT><DEDENT>
No list or union support