Try this instead: for $test in collection("TESTDOCS")/*
If it yields results, look at what element it returns. If it doesn't yield results, then for some reason your documents don't have any elements, and may not be getting loaded as XML. Does everything look good from the explore view? -m On Aug 18, 2011, at 11:52 AM, Zegarek, Arthur wrote: for $test in collection("TESTDOCS")/testreport
_______________________________________________ General mailing list General@developer.marklogic.com http://developer.marklogic.com/mailman/listinfo/general