[issue28238] In xml.etree.ElementTree findall() can't search all elements in a namespace

2019-05-03 Thread Stefan Behnel
Change by Stefan Behnel : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue28238] In xml.etree.ElementTree findall() can't search all elements in a namespace

2019-05-03 Thread Stefan Behnel
Stefan Behnel added the comment: New changeset 47541689ccea79dfcb055c6be5800b13fcb6bdd2 by Stefan Behnel in branch 'master': bpo-28238: Implement "{*}tag" and "{ns}*" wildcard tag selection support for ElementPath, and extend the surrounding tests and docs. (GH-12997)

[issue28238] In xml.etree.ElementTree findall() can't search all elements in a namespace

2019-04-28 Thread Stefan Behnel
Stefan Behnel added the comment: BTW, I found that lxml and ET differ in their behaviour when searching for '*'. ET takes it as meaning "any tree node", whereas lxml interprets it as "any Element". Since ET's parser does not create comments and processing instructions by default, this does

[issue28238] In xml.etree.ElementTree findall() can't search all elements in a namespace

2019-04-28 Thread Stefan Behnel
Stefan Behnel added the comment: PR submitted, feedback welcome. -- assignee: -> scoder type: behavior -> enhancement ___ Python tracker ___

[issue28238] In xml.etree.ElementTree findall() can't search all elements in a namespace

2019-04-28 Thread Stefan Behnel
Change by Stefan Behnel : -- keywords: +patch pull_requests: +12919 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue28238] In xml.etree.ElementTree findall() can't search all elements in a namespace

2019-04-15 Thread Stefan Behnel
Stefan Behnel added the comment: lxml has a couple of nice features here: - all tags in a namespace: "{namespace}*" - a local name 'tag' in any (or no) namespace: "{*}tag" - a tag without namespace: "{}tag" - all tags without namespace: "{}*" "{*}*" is also accepted but is the same as "*".

[issue28238] In xml.etree.ElementTree findall() can't search all elements in a namespace

2019-04-15 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +eli.bendersky, scoder, serhiy.storchaka versions: +Python 3.8 -Python 3.6 ___ Python tracker ___

[issue28238] In xml.etree.ElementTree findall() can't search all elements in a namespace

2016-09-21 Thread py.user
New submission from py.user: In the example there are two namespaces in one document, but it is impossible to search all elements only in one namespace: >>> import xml.etree.ElementTree as etree >>> >>> s = 'http://def; xmlns:x="http://x;>' >>> >>> root = etree.fromstring(s) >>> >>>