XML Parser, interleaving text and elements

sstnjpm02 at sneakemail.com sstnjpm02 at sneakemail.com
Thu Sep 4 21:24:58 UTC 2003


I porting a web project to 3.4 from Dolphin. In Dolphin I used the xml parser 
COM control to parse html pages stored as XHTML.

I am having a problem with code such as the following:

<span>a<span>b</span>c</span>

With the squeak parser this is rendered back as:

<span>ac
<span>b</span></span>

Is this correct or a bug? I assumed it's legal to interleave text and
elements like this in XML and expect the structure to be preserved. 

Since XMLNode separates content from elements I suspect this behavior of 
aggregating the text content is pretty well ingrained.

Are there other xml parsers available for squeak which will behave as I am 
expecting?



More information about the Squeak-dev mailing list