Browse Source

----------------------------------------------------------------------


			
			main
		
Joshua Boverhof 20 years ago
parent
commit
0c06215b15
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      XMLSchema.py

+ 2
- 2
XMLSchema.py View File

@@ -2318,9 +2318,9 @@ class ComplexType(XMLSchemaComponent,\
indx = 0 indx = 0
num = len(contents) num = len(contents)
#XXX ugly
if not num: if not num:
return return

component = SplitQName(contents[indx].getTagName())[1] component = SplitQName(contents[indx].getTagName())[1]
if component == 'annotation': if component == 'annotation':
self.annotation = Annotation(self) self.annotation = Annotation(self)
@@ -2675,7 +2675,7 @@ class ComplexType(XMLSchemaComponent,\
elif component == 'anyAttribute': elif component == 'anyAttribute':
content.append(AttributeWildCard(self)) content.append(AttributeWildCard(self))
elif component == 'simpleType': elif component == 'simpleType':
self.content.append(LocalSimpleType(self))
self.content.append(AnonymousSimpleType(self))
self.content[-1].fromDom(contents[indx]) self.content[-1].fromDom(contents[indx])
else: else:
raise SchemaError, 'Unknown component (%s)'\ raise SchemaError, 'Unknown component (%s)'\


Loading…
Cancel
Save