\starttext

\startxmlsetups xml:oursetups
   \xmlsetfunction {\xmldocument}{example}{lxml.flush}
\stopxmlsetups

\startbuffer[demo]
<example>inputted text<example>
\stopbuffer

\xmlregisterdocumentsetup{demo}{xml:oursetups}

\xmlprocessbuffer{demo}{demo}{}

\stoptext
