Hello there,

I have the following query:

declare variable $queryPath external := "D:\NROD Projects\xqCrews\diagrams.v3\";

declare variable $testSet := doc($queryPath || "tests\testSet1.xml");

$testSet

where testSet1.xml is:

<test>
  <test1>
    <content>Foobar</content>
  </test1>
  <test1>
    <content>Foobar</content>
  </test1>
</test>

When I run $testSet/*, I would expect to get the following result:

<test1>
  <content>Foobar</content>
</test1>
<test1>
  <content>Foobar</content>
</test1>

However, I get the complete document in testSet1.xml

When I run this against testSet1.xml

$testSet/*/* 

then I get what would I expect to see:

<test1>
  <content>Foobar</content>
</test1>
<test1>
  <content>Foobar</content>
</test1>

Am I misunderstanding something?

Shaun