Our XML genrated with PyXB does not get parsed by a third party parser for an unknown reason. One of the possibilities we were given was try to substitute <empty_element/> for <empty_element></empty_element >. Can somebody (Peter maybe) point me where formation of tags for empty elements is happening?
UPDATE
It seems like PyXB produces both opening and closing tags for empty elements and it's processing through lxml.etree that reduces them to closing tags only.
Last edit: Sergey Bushmanov 2016-12-14
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Our XML genrated with PyXB does not get parsed by a third party parser for an unknown reason. One of the possibilities we were given was try to substitute
<empty_element/>
for<empty_element></empty_element >
. Can somebody (Peter maybe) point me where formation of tags for empty elements is happening?UPDATE
It seems like PyXB produces both opening and closing tags for empty elements and it's processing through
lxml.etree
that reduces them to closing tags only.Last edit: Sergey Bushmanov 2016-12-14
PyXB delegates to the DOM implementation to generate the document structure. This is probably relevant.