Menu

Empty element with opening tag

Help
2016-12-14
2016-12-14
  • Sergey Bushmanov

    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
  • Peter A. Bigot

    Peter A. Bigot - 2016-12-14

    PyXB delegates to the DOM implementation to generate the document structure. This is probably relevant.

     

Log in to post a comment.