The Inbox: XML-Parser-ael.35.mcz

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

The Inbox: XML-Parser-ael.35.mcz

Aran Lunzer-2
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