\startxmlsetups xml:test
	\xmlsetsetup{\xmldocument}{document}{xml:*}
\stopxmlsetups

\xmlregistersetup{xml:test}

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

\startxmlsetups xml:p
	\xmlflush{#1}\par
\stopxmlsetups

\starttext
\xmlprocess{main}{xml.xml}{}
\stoptext
