\startxmlsetups demo
\xmlsetsetup{#1}{
root|test
}{demo:*}
\stopxmlsetups
\xmlregisterdocumentsetup{demo}{demo}
\startxmlsetups demo:root
\blank{\bf Start test}\crlf
\string\xmlinclusion\{\#1\} ===> "\xmlinclusion{#1}"\crlf
\xmlflush{#1}\crlf
{\bf End test}\blank
\stopxmlsetups
\startxmlsetups demo:test
\xmlflush{#1}
\stopxmlsetups
\starttext
\currentdate-\currenttime\quad\ConTeXt-version=\contextversion\blank
The following text is on page 52 of xml-mkiv.pdf:\crlf
\type{\xmlinclusion{...}}\crlf
returns the file where the node comes from\blank
Follows the test of this claim:
\xmlprocessfile{demo}{demo.xml}{}\blank
\typefile{demo.xml}
\stoptext
<?xml version="1.0" encoding="UTF-8"?>
<root>
<test>node TEST</test>
</root>