Spacy tokenizer that strips HTML/XML keeping the positions
Generally, XML is first parsed. Then, the contents can be analyzed with something like spaCy.
xml.etree.ElementTree is the most common way to parse XML in Python.