how to find an xml tag with special character in Python BeautifulSoup
问题 I am using Python BeautifulSoup version 3. my xml looks something like this (its from docx format):- <w:r w:rsidRPr="00541D75"> <w:rPr> <w:rFonts w:ascii="Times New Roman" w:hAnsi="Times New Roman" w:cs="Times New Roman"/> <w:b/> <w:color w:val="1F497D" w:themeColor="text2"/> <w:sz w:val="24"/> <w:szCs w:val="24"/> </w:rPr> <w:t>Mandatory / Optional</w:t> </w:r> </w:p> </w:tc> </w:tr> I wanted to extract out the content from tag 'w:t', and so this is what i did:- print soup.findAll('w:t')