This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ben.wainwright
Recipients ben.wainwright
Date 2017-05-26.12:57:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1495803428.74.0.976679303383.issue30485@psf.upfronthosting.co.za>
In-reply-to
Content
The findall method for ElementTree.Element handles namespace prefixes by tokenising the path and inserting the full namespace in braces based on entries in a dictionary.

Unfortunately, this does not work for a namespace without a prefix, so if you have files containing namespaces with and without prefixes, you still need to manually add the namespace url for the unprefixed path.

The function xpath_tokenizer checks to see if tokens contain a colon and only adds in the namespace url in that instance.

This could be changed to add the url if their is a colon, or if there is not, and the empty string key is present in the namespaces dictionary.
History
Date User Action Args
2017-05-26 12:57:08ben.wainwrightsetrecipients: + ben.wainwright
2017-05-26 12:57:08ben.wainwrightsetmessageid: <1495803428.74.0.976679303383.issue30485@psf.upfronthosting.co.za>
2017-05-26 12:57:08ben.wainwrightlinkissue30485 messages
2017-05-26 12:57:08ben.wainwrightcreate