From 4b8c6b3485798cba1319b688204350e5bf2ec837 Mon Sep 17 00:00:00 2001 From: Joshua Boverhof Date: Tue, 10 Feb 2009 20:05:51 +0000 Subject: [PATCH] M XMLSchema.py -- fix for bug report "[ 2586279 ] annotation IndexError" --- XMLSchema.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/XMLSchema.py b/XMLSchema.py index 07f2cf4..b6bb87c 100755 --- a/XMLSchema.py +++ b/XMLSchema.py @@ -2471,7 +2471,8 @@ class ComplexType(XMLSchemaComponent,\ self.annotation = Annotation(self) self.annotation.fromDom(contents[indx]) indx += 1 - component = SplitQName(contents[indx].getTagName())[1] + if indx < num: + component = SplitQName(contents[indx].getTagName())[1] self.content = None if component == 'simpleContent':