pylib/uxml/writer.py
def write(elem, a_writer):
    '''
    Write a MicroXML element node (yes, even one representign a whole document)
    elem - Amara MicroXML element node to be written out
    writer - instance of amara3.uxml.writer to implement the writing process
    '''
    a_writer.start_element(elem.xml_name, attribs=elem.xml_attributes)
    for node in elem.xml_children:
        if isinstance(node, tree.element):
            write(node, a_writer)
        elif isinstance(node, tree.text):
            a_writer.text(node)
    a_writer.end_element(elem.xml_name)
    return
def write(elem, a_writer):
    '''
    Write a MicroXML element node (yes, even one representign a whole document)
    elem - Amara MicroXML element node to be written out
    writer - instance of amara3.uxml.writer to implement the writing process
    '''
    a_writer.start_element(elem.xml_name, attribs=elem.xml_attributes)
    for node in elem.xml_children:
        if isinstance(node, tree.element):
            write(node, a_writer)
        elif isinstance(node, tree.text):
            a_writer.text(node)
    a_writer.end_element(elem.xml_name)
    return
Write a MicroXML element node (yes, even one representign a whole document)
    elem - Amara MicroXML element node to be written out
    writer - instance of amara3.uxml.writer to implement the writing process