Le 10/05/2025 à 07:48, Alexander Burger a écrit :
>
> It is just that (car Cells-References) came unexpected to me, because if
> 'Cells-References' holds an XML structure, then its CAR cannot be a
> list. It is always (<tag> <asoq> . <body>).
>
Ah! Yes, I should have specified that it had already been converted…
>>
>> (gnm:Cells
>> NIL
>> (gnm:Cell ((Row . "0") (Col . "0") (ValueType . "60")) "Ticker")
>> (gnm:Cell ((Row . "0") (Col . "1") (ValueType . "60")) "truc"))
>
> Right. So this structure can be processed with normal list functions.
>
> : (mapcar cddr (cddr X))
> -> (("Ticker") ("truc"))
>
> I would not overestimate the importance of 'attr' and 'body'. In fact,
> I use them rather seldom. Most of the time I'm iterating sub-structures
> like above.
>
I see… I do use some standard list operations to filter elements in the tree,
but I will have to see if I can simplify the code…
Thanks!
Laurent.
--
UNSUBSCRIBE: mailto:[email protected]?subject=Unsubscribe