Hi,

Hopefully an easy question.

If I run the following code in the Query Console,  the <Make> tag and its 
contents are displayed for the documents in the collection "tweets"

xquery version "1.0-ml";
for $doc in fn:collection('tweets')
return
 $doc//Make

Here is the output

<results warning="more than one root item">
  <Make>Honda</Make>
  <Make>Ford</Make>
</results>

The question is, how do I display just the list of  documents in this 
collection, such as

/truecarcsvcomma2/027cd7200a0a00de0109b4cbb3761e64.xml
/truecarcsvcomma2/027cd7200a0a00de0109b4cbb4571e64.xml
Etc.

Michael Malgeri
Principal Technologist
MarkLogic Corporation
[email protected]<mailto:[email protected]>
Cell: 1 310 704 6403
www.marklogic.com<http://www.marklogic.com>
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to