\startxmlsetups xml:testsetups
   \xmlsetsetup{test}{test|text}{xml:*}
\stopxmlsetups
\xmlregistersetup{xml:testsetups}

\startxmlsetups xml:test
	\xmlflush{#1}
\stopxmlsetups

\startxmlsetups xml:text
	tex: \xmlflush{#1}\crlf
	xmlstrippednolines: \xmlstrippednolines{#1}{.}\crlf
\stopxmlsetups

\startbuffer[test]
<test>
	<text>Dit is zonder embedded content.</text>
	<text>Dit is met <em>embedded</em> content.</text>
</test>
\stopbuffer

\starttext
   \xmlprocessbuffer{test}{test}{}
\stoptext
