The documentation is at the top of the single-file source, xmltextnorm.py
Python code for extracting a normalized version of text from an XML file like docbook or XHTML for use with diff