How can select and modify the tag <Tagwith.dot>
with some other text using beautifulsoup? If its not possible with beautifulsoup then what is the next best library for xml document edit and creation, would be lxml?
from bs4 import BeautifulSoup as bs
stra = """
<body>
<Tagwith.dot>Text inside tag with dot</Tagwith.dot>
</body>"""
soup = bs(stra)
Desired XML:
<body>
<Tagwith.dot>Edited text</Tagwith.dot>
</body>