|
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
|