% #1 should be empty, between the / and the >
% probably should put some internal form here rather than literally adding
% end tag to be reparsed, but this simplifies grab code.
\def\XML@endempty#1>{
\expandafter\XML@startelement
\expandafter<\expandafter/\begintag>}