Message5335
This is with activepython 2.5.2.2:
ActivePython 2.5.2.2 (ActiveState Software Inc.) based on
Python 2.5.2 (r252:60911, Mar 27 2008, 17:57:18) [MSC v.1310 32 bit
(Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from xml.dom.minidom import parseString
>>> d = parseString("<tag><!-- comment --></tag>")
>>> d.toxml()
u'<?xml version="1.0" ?><tag><!-- comment --></tag>'
Same script with jython:
Jython 2.5.1 (Release_2_5_1:6813, Sep 26 2009, 13:47:54)
[Java HotSpot(TM) Client VM (Sun Microsystems Inc.)] on java1.6.0_11
Type "help", "copyright", "credits" or "license" for more information.
>>> from xml.dom.minidom import parseString
>>> d = parseString("<tag><!-- comment --></tag>")
>>> d.toxml()
u'<?xml version="1.0" ?>\n<tag/>'
The outcome of jython is different from the CPython, the comment tag has
been removed from the DOM tree. |
|
Date |
User |
Action |
Args |
2009-12-01 08:40:51 | william.bernardet | set | recipients:
+ william.bernardet |
2009-12-01 08:40:50 | william.bernardet | set | messageid: <1259656850.82.0.986172240183.issue1510@psf.upfronthosting.co.za> |
2009-12-01 08:40:50 | william.bernardet | link | issue1510 messages |
2009-12-01 08:40:50 | william.bernardet | create | |
|