XML Parser, interleaving text and elements

sstnjpm02 at sneakemail.com sstnjpm02 at sneakemail.com
Fri Sep 5 00:20:30 UTC 2003


On Thu, 04 Sep 2003 14:39:48 -0700, Avi Bryant wrote:

> 
> On Thu, 4 Sep 2003 sstnjpm02 at sneakemail.com wrote:
> 
>> I am having a problem with code such as the following:
>>
>> <span>a<span>b</span>c</span>
> 
> <snip>
> 
>> Are there other xml parsers available for squeak which will behave as I am
>> expecting?
> 
> The HTML-Parser on SqueakMap will do what you want.

Thanks. I see that my example works properly but I hope I am not trading
one set of problems for another. So far I found one problem which prevents any 
of my html from rendering:

<br/> 			prints as <br//>
<input href="y"/>   	prints as <input href="y"/> /&gt;
 
and various other problems with &gt;....   being added

I was using the 1st one a lot in xhtml which I guess is not strictly legal
as html, but I need the abbreviated tag close as in the 2nd example to
work.

In general I am hoping that any legal xhtml will pass thru the parser without 
having to make huge changes, since I have a large amount of html already in 
the can.



More information about the Squeak-dev mailing list