Questions about XML processing?
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