[squeak-dev] The Inbox: XML-Parser-ael.35.mcz

Aran Lunzer aranlunzer at gmail.com
Fri Dec 23 06:15:57 UTC 2011


removeElement: wasn't working in XMLElement

The reason was that XMLElement overrides the #elements method as

    ^self elementsAndContents select: [:each | each isText not]

- i.e., an ephemeral collection.

Therefore the removeElement: inherited from XMLNodeWithElements, written as

     self elements remove: element ifAbsent: []

...was having no effect.


Aran Lunzer
Viewpoints Research Institute



More information about the Squeak-dev mailing list