Message5335

Author william.bernardet
Recipients william.bernardet
Date 2009-12-01.08:40:49
SpamBayes Score 4.4715254e-09
Marked as misclassified No
Message-id <1259656850.82.0.986172240183.issue1510@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2009-12-01 08:40:51william.bernardetsetrecipients: + william.bernardet
2009-12-01 08:40:50william.bernardetsetmessageid: <1259656850.82.0.986172240183.issue1510@psf.upfronthosting.co.za>
2009-12-01 08:40:50william.bernardetlinkissue1510 messages
2009-12-01 08:40:50william.bernardetcreate