class TextElement(Element): ns_attr_attr = Attribute('ns-attr', xmlns='http://earthreader.github.io/') value = Content() @classmethod def __coerce_from__(cls, value): if isinstance(value, string_type): return TextElement(value=value) raise TypeError
class ContentEncodeErrorDoc(DocumentElement): __tag__ = 'content-encode-error-test' value = Content(encoder=lambda s: object)
class ContentDescriptorConflictElement(Element): value = Content() value2 = Content()
class AdhocTextElement(Element): value = Content()
class TextDecoderElement(Element): value = Content(decoder=lambda s: s.upper())
class ELConsumeBufferRegressionTestD(Element): content = Content()
class ContentCodecTestDoc(DocumentElement): __tag__ = 'content-codec-test' c = Content(IntPair)
class TestMergeableContentDoc(MergeableDocumentElement): __tag__ = 'merge-content-test' content = Content()