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
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 <
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
.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
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
>>
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
>>
> 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"
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
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
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
)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
11 matches
Mail list logo