aas-core-works / aas-core3.0-python

Manipulate, verify and de/serialize asset administration shells in Python.
Other
4 stars 0 forks source link

Test and fix for text attached to end XML elements #18

Closed mristin closed 5 months ago

mristin commented 5 months ago

The ElementTree's XMLPullParser sometimes attaches the text to the start element and sometimes to the end element. We could not figure out why there is a different behavior, but suspect that it has something to do with the size of the parser buffer.

In this patch, we fix by looking for text in both events (start as well as end element).

This is related to the issue #17, and based on the aas-core-codegen after the pull request https://github.com/aas-core-works/aas-core-codegen/pull/443 has been merged in, aas-core-codegen 330f391.