Browse Source

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

Modified Files:
 	XMLSchema.py -- added the item trace to an exception thrown
           when an unexpected child is encountered in complexType.fromDom
           method so one can see where the problem is occuring.

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

+ 2
- 1
XMLSchema.py View File

@@ -2296,7 +2296,8 @@ class ComplexType(XMLSchemaComponent,\
elif component == 'anyAttribute':
self.attr_content.append(AttributeWildCard(self))
else:
raise SchemaError, 'Unknown component (%s)' %(contents[indx].getTagName())
raise SchemaError, 'Unknown component (%s): %s' \
%(contents[indx].getTagName(),self.getItemTrace())
self.attr_content[-1].fromDom(contents[indx])
indx += 1



Loading…
Cancel
Save