I studied both the recent MyWay document and Hans Hagens xml-mkiv reference manual (especially page 11).
\startxmlsetups xml:dvdsetups
\xmlsetsetup{dvdsetups}{*}{-}
\xmlsetsetup{dvdsetups}{dvd|title|subtitle}{xml:*}
\stopxmlsetups
\xmlregistersetup{xml:dvdsetups} % also not working: {dvdsetups}
\startxmlsetups xml:dvd
\Filenumber{\xmlatt{#1}{filenumber}}
\xmlflush{#1}
\stopxmlsetups
\startxmlsetups xml:title
\Title{\xmlflush{#1}}
\stopxmlsetups
\startxmlsetups xml:subtitle
\Subtitle{\xmlflush{#1}}
\stopxmlsetups
\def\Filenumber#1{Filenumber = \quotation{#1}\crlf}
\def\Title#1{Title = \quotation{#1}\crlf}
\def\Subtitle#1{Subtitle = \quotation{#1}\crlf}
\starttext
\xmlprocessfile{dvd}{dvd.xml}{}
\stoptext
\endinput
The file dvd.tex contains the following data:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<dvd filenumber="D001">
<title>Title</title>
<subtitle>subtitle</subtitle>
</dvd>
The result is a single ouput line with on it: Title subtitle
That is just the data inside the dvd nodes.
What am I doing wrong here?