Hi Lynn-
What version are you using? I just tried this with 5.4 M050 and it seems
to work OK. I did a freeform XML document with <document.root> as the
root element and <para.graph> as a child. With the cursor inside the
<para.graph> element, inside_tag() returns 1 for both "document.root"
and "para.graph".
As a workaround, the help for inside_tag() says "If you have applied an
alias map to the document, tagname can be an alias, as well as a real
name." So maybe you could define an alias to your <x.y> element name and
test for that?
--Clay