Browse Source

Apply patch submitted by Peter McA'Nulty of WebReply.com:

"class SimpleContent, class Extension.fromDom() at line ~2313
     doesn't handle extensions without contents -- unusual, but not
     illegal"
main
Gregory Warnes 20 years ago
parent
commit
7323f4751c
1 changed files with 8 additions and 6 deletions
  1. +8
    -6
      XMLSchema.py

+ 8
- 6
XMLSchema.py View File

@@ -2506,13 +2506,15 @@ class ComplexType(XMLSchemaComponent,\

indx = 0
num = len(contents)
component = SplitQName(contents[indx].getTagName())[1]
if component == 'annotation':
self.annotation = Annotation(self)
self.annotation.fromDom(contents[indx])
indx += 1
component = SplitQName(contents[indx].getTagName())[1]

if num:
component = SplitQName(contents[indx].getTagName())[1]
if component == 'annotation':
self.annotation = Annotation(self)
self.annotation.fromDom(contents[indx])
indx += 1
component = SplitQName(contents[indx].getTagName())[1]
content = []
while indx < num:
component = SplitQName(contents[indx].getTagName())[1]


Loading…
Cancel
Save