HI all,
I was trying to run a simple query using my C# Program but dont seem to be
winning...

I tried the following xqueries :


String query1 = "declare namespace bbb= '
http://www.aaaa.com/namespace/aa/bbb/'; for $doc in doc() let $title :=
$doc//bbb:title return $title";

string query2 = "for $doc in doc() return document-uri($doc)";

string query3 = "for $doc in doc() return name($doc/*[1])";

query2 and query3 wins , but quer1 doesnt return any result. The query1
returns results from the MarkLogic Query Screen though..

I am thinking it should be to do with the namespaces.. But not sure why it
should work in the Marklogic Query Screen and not through the program,
especially when other queries without the namespace work ....

I am using the SImpleQueryRunner.Cs program shipped with the Marklogic XCC
for .NET.



DakTapaal
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to