Author spacether
Recipients spacether
Date 2018-12-19.01:49:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1545184164.65.0.788709270274.issue35531@psf.upfronthosting.co.za>
In-reply-to
Content
When the following text it loaded in to an ElementTree Element, the find method is unable to find one of the elements without a namespace assigned to it.
```
import xml.etree.ElementTree as ElementTree

xml_text = """
<ns0:Envelope xmlns:ns0="http://schemas.xmlsoap.org/soap/envelope/"><ns0:Body><ns0:Fault><faultcode>a:ActionNotSupported</faultcode><faultstring xml:lang="en-US">The message with Action \'\' cannot be processed at the receiver, due to a ContractFilter mismatch at the EndpointDispatcher. This may be because of either a contract mismatch (mismatched Actions between sender and receiver) or a binding/security mismatch between the sender and the receiver.  Check that sender and receiver have the same contract and the same binding (including security requirements, e.g. Message, Transport, None).</faultstring></ns0:Fault></ns0:Body></ns0:Envelope>
"""

xml = ElementTree.fromstring(xml_text)
ele = xml.find('faultstring')
ele == None #True
```
History
Date User Action Args
2018-12-19 01:49:24spacethersetrecipients: + spacether
2018-12-19 01:49:24spacethersetmessageid: <1545184164.65.0.788709270274.issue35531@psf.upfronthosting.co.za>
2018-12-19 01:49:24spacetherlinkissue35531 messages
2018-12-19 01:49:22spacethercreate