mcmandelbrot.vroot.VRoot(object)
class documentation
Part of mcmandelbrot.vroot
(View In Hierarchy)
Known subclasses: mcmandelbrot.test.test_vroot.TestableVRoot
I am a context manager for passing you a baton with a virtual root element (my "e" attribute) to which you can add elements, e.g., an HTML document. When you get done, I'll put an XML string in the baton, with the XML tag stripped out and replaced with HTML tags.
The baton has tons of convenience methods for generating tags:
with (me) as vroot: ncx = vroot.se('ncx') ... xml = vroot.xml [ or = vroot() ] ...
Call my instance to get the XML or HTML as a string.
Method | __init__ | Undocumented |
Method | insert | Inserts the text read from the named entry in my headLines dict. |
Method | head | Undocumented |
Method | __call__ | No summary |
Method | __enter__ | Undocumented |
Method | __exit__ | Undocumented |
Inserts the text read from the named entry in my headLines dict.