Dear All,
I had posted a mail regarding some xquery help running from C# program
to Marklogic DB.
I am using the SimpleQueryRunner.Cs  from the Marklogic Sample files.

I wrote 2 queries as follows

 String query1 = "declare namespace bb=
\"http://www.aaa.com/namespace/aa/bb/\";; for $doc in doc() let $title
:= $doc//bb:title return $title";

 String query2 = "for $doc in doc() let $title := $doc//title return $title";


The query 1 runs on XMLs that have the namespace bb for the title.
The query 2 runs on XMLs that do not have any namespace for the title.

Query2 produces valid results but Query1 brings out empty result.

I am definitely sure it is the devils works of namespaces here that is
bothoring me because removing them from XML works fine.


I want to know if there is anything special we need to for the namespaces?

I am using the SimpleQueryRunner.Cs as is without any changes to it.

Your help will be highgly appreciated

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

Reply via email to