null result from filesystem xquery

just getting started here, but copied the style
of the example theatre and PLAY directories …
attached my result, query, dtd, data file.

Have I missed some important step in setting up a collection or querying a new collection?

Thanks in advance for any advice you can offer.kolstere@landcareresearch.co.nz
Liz.
WaitutuQueryProblem.txt (25.3 KB)

I’m no expert in this area but here’s what I think the problem is - someone please correct me if I’m wrong.

You have specified in your Query:

for $w in collection("BIP\WaitutuPlantFile")/WaitutuSiteData/PLOTRECORDS/PLOTRECORD</pre>so Quip will search all the files in directory "...\BIP\WaitutuPlantFile" for xml containing nodes:<BR><pre class="ip-ubbcode-code-pre">WaitutuSiteData/PLOTRECORDS/PLOTRECORD</pre>There aren't any.If you change your query to<pre class="ip-ubbcode-code-pre"><result> {
	for $w in collection("BIP\WaitutuPlantFile")/PLOTRECORDS/PLOTRECORD
	return $w
}
</result>

…it should work.
HTH