Hi Christian,
when I'm doing
json:serialize(fn:normalize-space(doc('bettelweib.xml')//*:body), map {
'format': 'jsonml' })
I get
JSON serializer: Atomic values cannot be serialized
Greetings from Hamburg,
Günter
> Am 11.02.2016 um 13:20 schrieb Christian Grün :
>
> Hi Günter,
>
> Did you try fn:normalize-space?
>
> Greetings from Prague,
> Christian
>
>
>
> On Thu, Feb 11, 2016 at 1:19 PM, Günter Dunz-Wolff
> wrote:
>> Hi all, hi Christian
>>
>> I want to serialize my xml-documents to jsonml like so:
>>
>> json:serialize(doc('bettelweib.xml')//*:body, map { 'format': 'jsonml' })
>>
>> Inside the jsonml are lots of strings with unnecessary whitespace like:
>>
>> "Das Bettelweib von\nLocarno."
>>
>> How could I remove that whitespace and also \n during or after the
>> serialization?
>>
>> Thanks for any help.
>>
>> Regards,
>>
>> Günter
>