xml Module

Dump objects to XML.

class knittingpattern.Dumper.xml.XMLDumper(on_dump)[source]

Bases: knittingpattern.Dumper.file.ContentDumper

Used to dump objects as XML.

__init__(on_dump)[source]

Create a new XMLDumper object with the callable on_dump.

on_dump takes no aguments and returns the object that should be serialized to XML.

object()[source]

Return the object that should be dumped.