class documentation

class debug_color:

View In Hierarchy

Takes XML, parses, reindents, strip_namespaces, returns a class that will render it in color in a jupyter notebook (using pygments).

Relies on pygments; CONSIDER: removing that dependency, we already have much of the code in the xml-color tool

Method __init__ Takes either an etree object, or a bytestring yet to be parsed
Instance Variable xstr XML as a string (after reindent and namespace strip)
Method _repr_html_ Undocumented
def __init__(self, tree_or_bytestring):

Takes either an etree object, or a bytestring yet to be parsed

xstr =

XML as a string (after reindent and namespace strip)

def _repr_html_(self):

Undocumented