We tried | parser doc visitor | parser := XMLDOMParser new on: self xmlContents; preservesIgnorableWhitespace: false. doc := parser parseDocument.
but we still have the empty nodes around. Stef On Tue, Dec 5, 2017 at 2:29 PM, Stephane Ducasse <[email protected]> wrote: > )Hi > > we are manipulating an XML document and I would like to get rid of the > spurious empty string. > We saw that the gt panes are doing it. > > (aNodeWithElements isStringNode > and: [aNodeWithElements isEmpty > or: [aNodeWithElements isWhitespace]] > > Is there a way not to produce empty nodes? > Is there a simple way not to have to handle them > > Now each time we are dealing with a node with have to check. > > Stef
