Issue581785

classification
Title: bug in 4DOM
Type: Severity: normal
Components: Library Versions:
Milestone:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: bckfnn Nosy List: bckfnn
Priority: normal Keywords:

Created on 2002-07-15.17:05:43 by anonymous, last changed 2002-09-18.13:52:50 by bckfnn.

Messages
msg686 (view) Author: Nobody/Anonymous (nobody) Date: 2002-07-15.17:05:43
4DOM creates an incorrect DOM tree when you have 
text before the first child tag:

<parent>
   some text
   <child>
   <child>
   ...
</parent>

eg:
test.xml:
<test>Some <b>text</b> here</test>

Jython 2.1 on java1.4.0-beta3 (JIT: null)
Type "copyright", "credits" or "license" for more 
information.
>>> from xml.dom.ext.reader import Sax2
>>> reader = Sax2.Reader()
>>> doc = reader.fromStream("test.xml")

xml.dom.ext.PrettyPrint(doc) gives out:

<test>
  <b>Some text</b> here</test>

As you can see it combines the first text node with the 
content of <b> as the value of <b>. 

Python correctly returns
<test>
  Some
    <b>text</b>
  here
</test>


msg687 (view) Author: Finn Bock (bckfnn) Date: 2002-09-18.13:51:25
Logged In: YES 
user_id=4201

Added as test369.py
msg688 (view) Author: Finn Bock (bckfnn) Date: 2002-09-18.13:52:50
Logged In: YES 
user_id=4201

Example works in current CVS, probably fixed with a previous
bugfix in sre.
History
Date User Action Args
2002-07-15 17:05:43anonymouscreate