Message212033
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". |
|
Date |
User |
Action |
Args |
2014-02-23 21:59:56 | loewis | set | recipients:
+ loewis, peter.otten, eric.araujo, serhiy.storchaka, arturcz |
2014-02-23 21:59:56 | loewis | set | messageid: <1393192796.39.0.713658495561.issue20714@psf.upfronthosting.co.za> |
2014-02-23 21:59:56 | loewis | link | issue20714 messages |
2014-02-23 21:59:56 | loewis | create | |
|