Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- find = etree.XPath("//w:p//.//*[local-name() = 'ins']//text()" ,namespaces={'w':"http://schemas.openxmlformats.org/wordprocessingml/2006/main"})
- inserted_list_1=[]
- for p in lxml_tree.findall('.//{' + w + '}p'):
- inserted_list_1.append([t.text for t in p.findall('.//{' + w + '}ins')])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement