Hi
 
 My xmls will be in the format given below. I am searching for the Name field
Product.xml (multiple xml in same format stored in Ml server)
<item>
<id>10202</id>
<Name>Herbal cream</Name>
<group>
<id>i1</id>
<description> cream product</description>
</group>
<method>
            <id>md128</id>
            <description>herbal</description>
</method>
<groupdesc>cream product</groupdesc> (:Indexed based on this group element:)
<item>
 
Group.xml
 
<Group>
    <category id ="A">
        <Name>Herbal cream</Name>
    </category>
    <category id ="B">
…
    </category>
…
</Group>
 
 
I am using cts:element-value-match() query to search in <Name> element in 
Product.xml 

 (created element range index for <Name>  field) .Simultaneously I need to 
verify whether the same name is present in Group.xml another xml. Please 
suggest 
which cts:query() I need to used to check this condition along with 
cts:element-value-match()
 
Let $query :=???
return cts:element-value-match(xs:Qname(“Name”), “Herbal cream”,() , $query)
 
Thanks in advance
 
Regards,
Mano

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

Reply via email to