Did I find the right examples for you? yes no

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)

src/a/k/Akara-2.0.0a4/demo/etc/MoinMoin/formatter/application_xml.py   Akara(Download)
from amara import tree
from amara.writers.struct import structwriter, E, NS, ROOT, RAW
from amara.bindery.html import markup_fragment
from amara.lib import inputsource
from amara.lib import U
        #response is Unicode
        if output:
            output_body = markup_fragment(inputsource.text(output.encode(config.charset)))
            #print "macro 2", repr(output)
            self._curr.xml_append(output_body)
    def rawHTML(self, markup):
        #output = htmlparse(markup).html.body.xml_encode() if markup else ''
        if markup:
            body = markup_fragment(inputsource.text(markup))
            for child in body.xml_children: