I have an xml doc that I am trying to parse using Etree.lxml
1&
The last solution from https://bitbucket.org/olauzanne/pyquery/issue/17 can help you to avoid namespaces with little effort
apply
xml.replace(' xmlns:', ' xmlnamespace:')to your xml before using pyquery so lxml will ignore namespaces
In your case, try xml.replace(' xmlns="', ' xmlnamespace="'). However, you might need something more complex if the string is expected in the bodies as well.