Mantis - Squeak
Viewing Issue Advanced Details
7689 XML-Yaxo minor always 02-19-12 01:09 07-06-12 22:41
jrm  
 
normal  
new 4.1  
open  
none    
none  
0007689: XMLDOMParser drops information
Squeak 4.1 #9957
Inspect: XMLDOMParser parseDocumentFrom: (ReadStream on:
' <links>
      <link type="mediaselector">http://www.bbc.co.uk/mediaselector/4/mtis/stream/b006tm9y</link> [^]
    </links>')
---
elementsAndContents displays:
 <links>
<link type="mediaselector"/> </links>
The example is a snippet of XML from 'http://www.bbc.co.uk/radio/aod/availability/radio4extra.xml'. [^] The same result occurs when processing the entire file. I created this smaller example hoping I could debug the code, but I get lost in parseDocument.

If the example is modified to includ a #> after the the string <link, I get results more like what I expect. I ran the URI through an XML validator at http://validator.w3.org [^] and it passed.

Notes
(0014216)
jrm   
02-23-12 17:19   
The example in the description works as expected in Pharo-1.3-13315.
(0014226)
jrm   
07-06-12 22:41   
As of Squeak 4.3 #11860, this seems to be resolved.

I performed the test I described and got the results I expected.