Possibly i will have to use a different method from lxml like this. http://stackoverflow.com/a/29057244/461887 Sayth