I am trying to strip XML tags from a document using Python, a language I am a novice in. Here is my first attempt using regex, whixh was really a hope-for-the-best idea.
An alternative to Jeremiah's answer without requiring the lxml external library:
import xml.etree.ElementTree as ET ... tree = ET.fromstring(Text) notags = ET.tostring(tree, encoding='utf8', method='text') print(notags)
Should work with any Python >= 2.5