Calculate color values, docstring added
Skip DOM parsing and treat the XML as text