[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Questions about XML processing?

On 2020-11-07 20:03, Dieter Maurer wrote:
> Hern?n De Angelis wrote at 2020-11-6 21:54 +0100:
>> ...
>> However, the hard thing to do here is to get those only when
>> tagC/note/title/string='value'. I was expecting to find a way of
>> specifying a certain construction in square brackets, like
>> [@string='value'] or [@/tagC/note/title/string='value'], as is usual in
>> XML and possible in xml.etree. However this proved difficult (at least
>> for me). So this is the "brute" solution I implemented:
> You might have a look at `lxml`.
> It supports XPath (1.0) which is more powerfull in selecting nodes
> than `etree`.

Yes, I am having a look at that. Thanks.