We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 368861c commit 8f237f7Copy full SHA for 8f237f7
1 file changed
src/zeep/xsd/types/complex.py
@@ -219,10 +219,12 @@ def parse_xmlelement(
219
220
# Check if all children are consumed (parsed)
221
if elements:
222
+ err_msg = "Unexpected element %r"
223
if schema and schema.settings.strict:
- raise XMLParseError("Unexpected element %r" % elements[0].tag)
224
- else:
225
- init_kwargs["_raw_elements"] = elements
+ raise XMLParseError(err_msg % elements[0].tag)
+ init_kwargs["_raw_elements"] = elements
226
+ for element in elements:
227
+ logger.debug(err_msg % element.tag)
228
229
# Parse attributes
230
if attributes:
0 commit comments