Martin v. Löwis added the comment: I don't think your proposal can be implemented. createXYZ, in DOM, only creates a single node, which is not yet attached at all into a tree. So if you would want a convenience function to create multiple CDATA section, the application would then still have to loop over them to insert them individually into the tree.
Personally, I would not have my application create multiple CDATA sections. Instead, I would use if ']]>' in error_info: failureText = xml_document.createTextNode(error_info) else: failureText = xml_document.createCDATASection(error_info) instead. So I doubt that all application authors would really agree on a single solution to this problem. Closing this as "won't fix". ---------- resolution: -> wont fix status: open -> closed _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue20714> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com