enable.savage.compliance.xml_view module

Traits UI tools for viewing the XML tree of SVG files.

class enable.savage.compliance.xml_view.Attribute[source]

Bases: traits.has_traits.HasTraits

View model for an XML attribute.

class enable.savage.compliance.xml_view.Element[source]

Bases: traits.has_traits.HasTraits

View model for an XML element.

class enable.savage.compliance.xml_view.XMLTree(model=None, **metadata)[source]

Bases: traitsui.handler.ModelView

Handler for viewing XML trees.

classmethod fromxml(root, **traits)[source]
enable.savage.compliance.xml_view.main()[source]
enable.savage.compliance.xml_view.normalize_name(name)[source]

Normalize XML names to abbreviate namespaces.

enable.savage.compliance.xml_view.xml_to_tree(root)[source]

Convert an ElementTree Element to the view models for viewing in the TreeEditor.