Re: [Pharo-dev] How to get rid of empty XML nodes?

2018-01-29 Thread Stephane Ducasse
uot;Pharo Development List" <pharo-dev@lists.pharo.org> >> Subject: Re: [Pharo-dev] How to get rid of empty XML nodes? >> >> Tx Monty! >> This is a really important addition :) >> Because a super frequent scenario. >> >> Stef >> >> O

Re: [Pharo-dev] How to get rid of empty XML nodes?

2018-01-29 Thread monty
o Development List" <pharo-dev@lists.pharo.org> > Subject: Re: [Pharo-dev] How to get rid of empty XML nodes? > > Tx Monty! > This is a really important addition :) > Because a super frequent scenario. > > Stef > > On Fri, Jan 26, 2018 at 8:37 AM, monty <

Re: [Pharo-dev] How to get rid of empty XML nodes?

2018-01-26 Thread Stephane Ducasse
bringing this to my attention, and I added a Stream-like #new > implementation to SAXHandler. > >> Sent: Friday, December 08, 2017 at 9:21 AM >> From: "Stephane Ducasse" <stepharo.s...@gmail.com> >> To: "Pharo Development List" <pharo-dev@list

Re: [Pharo-dev] How to get rid of empty XML nodes?

2018-01-25 Thread monty
.s...@gmail.com> > To: "Pharo Development List" <pharo-dev@lists.pharo.org> > Subject: Re: [Pharo-dev] How to get rid of empty XML nodes? > > Hi monty > > > On Fri, Dec 8, 2017 at 9:03 AM, monty <mon...@programmer.net> wrote: > > By "empty XM

Re: [Pharo-dev] How to get rid of empty XML nodes?

2017-12-10 Thread Norbert Hartl
methods, or maybe a tree >>>> transformation. >>> >>> It would be A HUGE PLUS!! >>> >>> >>> Because reality is that people have XML files with just nodes and no >>> empty nodes and they are forced to >>

Re: [Pharo-dev] How to get rid of empty XML nodes?

2017-12-09 Thread Stephane Ducasse
as a big drag. >> >> Stef >> >> >> I tried to set some values in the parser but it did not work. >> BTW I saw that the configuration logic forces to write the following >> >> | parser doc visitor | >> parser := XMLDOMParser new >>

Re: [Pharo-dev] How to get rid of empty XML nodes?

2017-12-08 Thread Norbert Hartl
> and not > > | parser doc visitor | > parser := XMLDOMParser new >preservesIgnorableWhitespace: true. >on: self xmlContents; > > >> >>> Sent: Tuesday, December 05, 2017 at 8:29 AM >>> From: "Stephane Ducasse"

Re: [Pharo-dev] How to get rid of empty XML nodes?

2017-12-08 Thread Stephane Ducasse
DOMParser new on: self xmlContents; preservesIgnorableWhitespace: true. and not | parser doc visitor | parser := XMLDOMParser new preservesIgnorableWhitespace: true. on: self xmlContents; > >> Sent: Tuesday, December 05, 2017 at 8:29 AM >> From: "Stephane Ducasse&q

Re: [Pharo-dev] How to get rid of empty XML nodes?

2017-12-08 Thread monty
at 8:29 AM > From: "Stephane Ducasse" <stepharo.s...@gmail.com> > To: "Pharo Development List" <pharo-dev@lists.pharo.org> > Subject: [Pharo-dev] How to get rid of empty XML nodes? > > )Hi > > we are manipulating an XML document and I would like to g

Re: [Pharo-dev] How to get rid of empty XML nodes?

2017-12-05 Thread Stephane Ducasse
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 wrote: > )Hi > > we are

[Pharo-dev] How to get rid of empty XML nodes?

2017-12-05 Thread Stephane Ducasse
)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