BUG in XMLElement >> printXMLOn:

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

BUG in XMLElement >> printXMLOn:

Thomas Fischer
Hi list,
when I do:

Transcript show: (XMLDOMParser parseDocumentFrom: (
        ReadStream on: '<xml>T1<E1/>T2<E2/></xml>'
))

I get: '
<xml>T1T2
<E1></E1>
<E2></E2></xml>'

The order of child nodes is wrong: T1,T2,E1,E2 instead of T1,E1,T2,E2.

I don't understand, why a XMLElement has TWO collections: contents elements instead of ONE collection for childNodes.

salute
Thomas
Reply | Threaded
Open this post in threaded view
|

Re: BUG in XMLElement >> printXMLOn:

Michael Rueger-6
Thomas Fischer wrote:

> The order of child nodes is wrong: T1,T2,E1,E2 instead of T1,E1,T2,E2.
>
> I don't understand, why a XMLElement has TWO collections: contents elements
> instead of ONE collection for childNodes.

This has been a known bug for some time.
It is fixed in the latest version. I need to apply another fix though
before release it.
Somehow slipped off of my todo list...

Michael

_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners