a paragraph of text
another paragraph of text
\stopbuffer
\startxmlsetups xml:demo
\xmlsetsetup{\xmldocument}{document|p}{xml:*}
\stopxmlsetups
\xmlregistersetup{xml:demo}
\startxmlsetups xml:document
\xmlflush{#1}
\stopxmlsetups
\startxmlsetups xml:p
\xmlflush{#1}\endgraf
\stopxmlsetups
\starttext
\xmlprocessbuffer{test}{test}{}
\stoptext
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
However, if I have the XML and the setups in dedicated files, there seems to be no need for \starttext ... \stoptext.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% text.xml