%s'%(x.tag,txt) # recurse through tree, if necessary for a in x: s+=et2string(a) s+='%s'%(x.tag,(x.tail or '')) return s ?> ${elem.text.strip()} ${Markup(s).strip()} Toggle expand/contract
${name} Add/Edit
${Markup(value or 'No data specified at present')}
$alttext Toggle help