This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author loewis
Recipients arturcz, eric.araujo, loewis, peter.otten, serhiy.storchaka
Date 2014-02-23.21:59:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1393192796.39.0.713658495561.issue20714@psf.upfronthosting.co.za>
In-reply-to
Content
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".
History
Date User Action Args
2014-02-23 21:59:56loewissetrecipients: + loewis, peter.otten, eric.araujo, serhiy.storchaka, arturcz
2014-02-23 21:59:56loewissetmessageid: <1393192796.39.0.713658495561.issue20714@psf.upfronthosting.co.za>
2014-02-23 21:59:56loewislinkissue20714 messages
2014-02-23 21:59:56loewiscreate